diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-04-21 01:01:19 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-04-21 01:01:19 +0000 |
commit | 52d2b0ed00d71c8ba0ff1a0b35cad4ffebc81dd5 (patch) | |
tree | 4484239135c3e256fd5025a34a49e57bca69773d /lib/Target/ARM/Disassembler/ARMDisassemblerCore.h | |
parent | 08e322db8a544d100f7518cfbd39ef8c13067698 (diff) |
Thumb instructions which have reglist operands at the end and predicate operands
before reglist were not properly handled with respect to IT Block. Fix that by
creating a new method ARMBasicMCBuilder::DoPredicateOperands() used by those
instructions for disassembly. Add a test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/Disassembler/ARMDisassemblerCore.h')
-rw-r--r-- | lib/Target/ARM/Disassembler/ARMDisassemblerCore.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/ARM/Disassembler/ARMDisassemblerCore.h b/lib/Target/ARM/Disassembler/ARMDisassemblerCore.h index ca6a67c76b..b1d90df341 100644 --- a/lib/Target/ARM/Disassembler/ARMDisassemblerCore.h +++ b/lib/Target/ARM/Disassembler/ARMDisassemblerCore.h @@ -210,6 +210,12 @@ public: Err = ErrCode; } + /// DoPredicateOperands - DoPredicateOperands process the predicate operands + /// of some Thumb instructions which come before the reglist operands. It + /// returns true if the two predicate operands have been processed. + bool DoPredicateOperands(MCInst& MI, unsigned Opcode, + uint32_t insn, unsigned short NumOpsRemaning); + /// TryPredicateAndSBitModifier - TryPredicateAndSBitModifier tries to process /// the possible Predicate and SBitModifier, to build the remaining MCOperand /// constituents. |