summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
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
commitf2f00b4e2815523dcabed451e9281a743cd69d3a (patch)
tree5c96db336f32217b9f59f3087c378684c1525f6c /llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
parent2f0ac8d961cc791ffa59ca101c4687498ac27ff8 (diff)
downloadbcm5719-llvm-f2f00b4e2815523dcabed451e9281a743cd69d3a.tar.gz
bcm5719-llvm-f2f00b4e2815523dcabed451e9281a743cd69d3a.zip
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. llvm-svn: 184703
Diffstat (limited to 'llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp')
-rw-r--r--llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
index 62394faa688..8734e441978 100644
--- a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud