commit | 0780b6303b99441fef04340b7a083006484f4743 | [log] [tgz] |
---|---|---|
author | Jim Grosbach <grosbach@apple.com> | Fri Aug 19 23:24:36 2011 +0000 |
committer | Jim Grosbach <grosbach@apple.com> | Fri Aug 19 23:24:36 2011 +0000 |
tree | 79ac2a32d79b3f721304fd949d8bae5c232b8af0 | |
parent | cc29861901fdf9b60dfdb2d4d9f4670c0320db44 [diff] [blame] |
Thumb parsing and encoding support for NOP. The irony is not lost that this is not a completely trivial patchset. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138143 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp index 1999ee7..153f68d 100644 --- a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp +++ b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
@@ -169,6 +169,13 @@ return; } + // Thumb1 NOP + if (Opcode == ARM::tMOVr && MI->getOperand(0).getReg() == ARM::R8 && + MI->getOperand(1).getReg() == ARM::R8) { + O << "\tnop"; + return; + } + printInstruction(MI, O); }