aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/InstPrinter
diff options
context:
space:
mode:
authorAmaury de la Vieuville <amaury.dlv@gmail.com>2013-06-24 09:11:53 +0000
committerAmaury de la Vieuville <amaury.dlv@gmail.com>2013-06-24 09:11:53 +0000
commit4ee72398a15cd7b8e217bb3d34a4e9e0e72caca1 (patch)
treebd75f19bcaafd51f4a4e9b45d8c1d9c85226ffa3 /lib/Target/ARM/InstPrinter
parentff08da15cf3d0412ee9cc325fc5a720bcad178f2 (diff)
downloadexternal_llvm-4ee72398a15cd7b8e217bb3d34a4e9e0e72caca1.zip
external_llvm-4ee72398a15cd7b8e217bb3d34a4e9e0e72caca1.tar.gz
external_llvm-4ee72398a15cd7b8e217bb3d34a4e9e0e72caca1.tar.bz2
ARM: fix thumb1 nop decoding
In thumb1, NOP is a pseudo-instruction equivalent to mov r8, r8. However the disassembler should not use this alias. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/InstPrinter')
-rw-r--r--lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
index 62394fa..8734e44 100644
--- a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
+++ b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
@@ -243,15 +243,6 @@ void ARMInstPrinter::printInst(const MCInst *MI, raw_ostream &O,
return;
}
- // Thumb1 NOP
- if (Opcode == ARM::tMOVr && MI->getOperand(0).getReg() == ARM::R8 &&
- MI->getOperand(1).getReg() == ARM::R8) {
- O << "\tnop";
- printPredicateOperand(MI, 2, O);
- printAnnotation(O, Annot);
- return;
- }
-
// Combine 2 GPRs from disassember into a GPRPair to match with instr def.
// ldrexd/strexd require even/odd GPR pair. To enforce this constraint,
// a single GPRPair reg operand is used in the .td file to replace the two