aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitf9ce2cba42f76ad82bbb17436902f66a9e5f6367 (patch)
treeb929bc698aabda678f2b14fb2157b6051cb1704c /lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h
parente1b43c3b4000ee7201fcac8d1c8e75bb9fb547e3 (diff)
downloadexternal_llvm-f9ce2cba42f76ad82bbb17436902f66a9e5f6367.tar.gz
external_llvm-f9ce2cba42f76ad82bbb17436902f66a9e5f6367.tar.bz2
external_llvm-f9ce2cba42f76ad82bbb17436902f66a9e5f6367.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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h')
-rw-r--r--lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h b/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h
index b1a389abfd..2eeb8755bf 100644
--- a/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h
+++ b/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);