diff options
author | Owen Anderson <resistor@mac.com> | 2011-08-26 20:43:14 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-08-26 20:43:14 +0000 |
commit | 16d33f36d5e86d8927b395265f02469fd5f169de (patch) | |
tree | b3a19256416884aea8a356f48a9f0a13d0fa6acf /llvm/lib/Target/ARM/ARMInstrInfo.cpp | |
parent | 28dc5abd0507f9e76b5fc831646f4dbdb0b4fd4d (diff) | |
download | bcm5719-llvm-16d33f36d5e86d8927b395265f02469fd5f169de.tar.gz bcm5719-llvm-16d33f36d5e86d8927b395265f02469fd5f169de.zip |
invalid-LDR_PRE-arm.txt was already passing, but for the wrong reasons. We were failing to specify enough fixed bits of LDR_PRE/LDRB_PRE, resulting in decoding conflicts. Separate them into immediate vs. register versions, allowing us to specify the necessary fixed bits. This in turn results in the test being decoded properly, and being rejected as UNPREDICTABLE rather than a hard failure.
llvm-svn: 138653
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMInstrInfo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.cpp b/llvm/lib/Target/ARM/ARMInstrInfo.cpp index f8880ea4e0e..48da03f63bb 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.cpp +++ b/llvm/lib/Target/ARM/ARMInstrInfo.cpp @@ -30,14 +30,16 @@ ARMInstrInfo::ARMInstrInfo(const ARMSubtarget &STI) unsigned ARMInstrInfo::getUnindexedOpcode(unsigned Opc) const { switch (Opc) { default: break; - case ARM::LDR_PRE: + case ARM::LDR_PRE_IMM: + case ARM::LDR_PRE_REG: case ARM::LDR_POST_IMM: case ARM::LDR_POST_REG: return ARM::LDRi12; case ARM::LDRH_PRE: case ARM::LDRH_POST: return ARM::LDRH; - case ARM::LDRB_PRE: + case ARM::LDRB_PRE_IMM: + case ARM::LDRB_PRE_REG: case ARM::LDRB_POST_IMM: case ARM::LDRB_POST_REG: return ARM::LDRBi12; |