diff options
| author | Eric Christopher <echristo@apple.com> | 2011-05-24 23:15:43 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2011-05-24 23:15:43 +0000 |
| commit | e1739d598d2c980822cc42bbf9821b91ebbc829f (patch) | |
| tree | 33763e6c84409de45aec010dc631283d181088f9 /lib/Target/ARM/ARMAsmPrinter.cpp | |
| parent | 424641ef83fbb99640d3e2758148a9d3ea2b3830 (diff) | |
Implement the immediate part of the 'B' modifier.
Part of rdar://9119939
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmPrinter.cpp')
| -rw-r--r-- | lib/Target/ARM/ARMAsmPrinter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp index ac61c033a5..f1edc55120 100644 --- a/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/ARMAsmPrinter.cpp @@ -417,6 +417,10 @@ bool ARMAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNum, } // Fallthrough to unsupported. case 'B': // Bitwise inverse of integer or symbol without a preceding #. + if (!MI->getOperand(OpNum).isImm()) + return true; + O << ~(MI->getOperand(OpNum).getImm()); + return false; case 'L': // The low 16 bits of an immediate constant. case 'm': // The base register of a memory operand. case 'M': // A register range suitable for LDM/STM. |
