summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-04-12 18:48:00 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-04-12 18:48:00 +0000
commitab86a519f82057b7f1ecabef9d6fb12e5d52e244 (patch)
tree05e91dab1ca9db5f39cee0992b921f6e8b3fd70c /llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h
parent0840f50b7652558f33fea38948592cf15857574a (diff)
downloadbcm5719-llvm-ab86a519f82057b7f1ecabef9d6fb12e5d52e244.tar.gz
bcm5719-llvm-ab86a519f82057b7f1ecabef9d6fb12e5d52e244.zip
The Thumb2 Ld, St, and Preload instructions with the i12 forms should have its Inst{23}
be specified as '1' (add = TRUE). Also add a utility function for Thumb2. llvm-svn: 129377
Diffstat (limited to 'llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h')
-rw-r--r--llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h b/llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h
index b1a389abfd8..2eeb8755bf4 100644
--- a/llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h
+++ b/llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h
@@ -108,6 +108,8 @@ static inline bool IsGPR(unsigned RegClass) {
// Utilities for 32-bit Thumb instructions.
+static inline bool BadReg(uint32_t n) { return n == 13 || n == 15; }
+
// Extract imm4: Inst{19-16}.
static inline unsigned getImm4(uint32_t insn) {
return slice(insn, 19, 16);
OpenPOWER on IntegriCloud