diff options
author | Tim Northover <tnorthover@apple.com> | 2014-05-27 07:37:21 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-05-27 07:37:21 +0000 |
commit | 4719041db710a2666ceb3f50de980023ac2fc4fb (patch) | |
tree | a494b4b6f90ff098bfe2f31a36177435c4b1c847 /llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp | |
parent | c0e6703360e42f8ba61f241913b601955b72a9ac (diff) | |
download | bcm5719-llvm-4719041db710a2666ceb3f50de980023ac2fc4fb.tar.gz bcm5719-llvm-4719041db710a2666ceb3f50de980023ac2fc4fb.zip |
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.
llvm-svn: 209646
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp b/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp index 8553a591fee..c3ee9bbb817 100644 --- a/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp +++ b/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp @@ -266,6 +266,11 @@ bool AArch64AsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNum, unsigned AsmVariant, const char *ExtraCode, raw_ostream &O) { 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? if (ExtraCode && ExtraCode[0]) { if (ExtraCode[1] != 0) |