summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/ARMDecoderEmitter.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-04-22 19:12:43 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-04-22 19:12:43 +0000
commit57c892860efee1d10f9b134951d61387ef3ff9ca (patch)
tree0be605709a14ca28e5b484e6eaf6f65693524a3b /llvm/utils/TableGen/ARMDecoderEmitter.cpp
parent56773db7d407d2016bf70904052e7b0e73b60d09 (diff)
downloadbcm5719-llvm-57c892860efee1d10f9b134951d61387ef3ff9ca.tar.gz
bcm5719-llvm-57c892860efee1d10f9b134951d61387ef3ff9ca.zip
Disassembly of A8.6.59 LDR (literal) Encoding T1 (16-bit thumb instruction) should
print out ldr, not ldr.n. rdar://problem/9267772 llvm-svn: 130008
Diffstat (limited to 'llvm/utils/TableGen/ARMDecoderEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/ARMDecoderEmitter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/ARMDecoderEmitter.cpp b/llvm/utils/TableGen/ARMDecoderEmitter.cpp
index ed44f821a20..62bd1c65e4b 100644
--- a/llvm/utils/TableGen/ARMDecoderEmitter.cpp
+++ b/llvm/utils/TableGen/ARMDecoderEmitter.cpp
@@ -1652,6 +1652,11 @@ ARMDEBackend::populateInstruction(const CodeGenInstruction &CGI,
Name == "t2ADDrSPi12" || Name == "t2SUBrSPi12")
return false;
+ // FIXME: Use ldr.n to work around a Darwin assembler bug.
+ // Introduce a workaround with tLDRpciDIS opcode.
+ if (Name == "tLDRpci")
+ return false;
+
// Ignore t2LDRDpci, prefer the generic t2LDRDi8, t2LDRD_PRE, t2LDRD_POST.
if (Name == "t2LDRDpci")
return false;
OpenPOWER on IntegriCloud