mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
AArch64: support 'c' and 'n' inline asm modifiers.
These are tested by test/CodeGen/Generic, so we should probably know how to deal with them. Fortunately generic code does it if asked. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -266,6 +266,11 @@ bool AArch64AsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNum,
|
|||||||
unsigned AsmVariant,
|
unsigned AsmVariant,
|
||||||
const char *ExtraCode, raw_ostream &O) {
|
const char *ExtraCode, raw_ostream &O) {
|
||||||
const MachineOperand &MO = MI->getOperand(OpNum);
|
const MachineOperand &MO = MI->getOperand(OpNum);
|
||||||
|
|
||||||
|
// First try the generic code, which knows about modifiers like 'c' and 'n'.
|
||||||
|
if (!AsmPrinter::PrintAsmOperand(MI, OpNum, AsmVariant, ExtraCode, O))
|
||||||
|
return false;
|
||||||
|
|
||||||
// Does this asm operand have a single letter operand modifier?
|
// Does this asm operand have a single letter operand modifier?
|
||||||
if (ExtraCode && ExtraCode[0]) {
|
if (ExtraCode && ExtraCode[0]) {
|
||||||
if (ExtraCode[1] != 0)
|
if (ExtraCode[1] != 0)
|
||||||
|
Reference in New Issue
Block a user