diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-04-12 00:14:49 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-04-12 00:14:49 +0000 |
commit | 672ef14a62da5e6dca3be55cd72e4e610933bb10 (patch) | |
tree | 022c562f2adabe7dfa02195a9dc4adb9cc185ed6 /llvm/lib/Target | |
parent | 1c6c34834b92c6152f11a2d546535d78bfbb9a5a (diff) | |
download | bcm5719-llvm-672ef14a62da5e6dca3be55cd72e4e610933bb10.tar.gz bcm5719-llvm-672ef14a62da5e6dca3be55cd72e4e610933bb10.zip |
A8.6.16 B
Encoding T1 (tBcc)
if cond == '1110' then UNDEFINED;
rdar://problem/9268681
llvm-svn: 129325
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h b/llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h index 85816e02fef..480f8bb2bd7 100644 --- a/llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h +++ b/llvm/lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h @@ -951,6 +951,11 @@ static bool DisassembleThumb1CondBr(MCInst &MI, unsigned Opcode, uint32_t insn, : (int)Imm8)); // Predicate operands by ARMBasicMCBuilder::TryPredicateAndSBitModifier(). + // But note that for tBcc, if cond = '1110' then UNDEFINED. + if (Opcode == ARM::tBcc && slice(insn, 11, 8) == 14) { + DEBUG(errs() << "if cond = '1110' then UNDEFINED\n"); + return false; + } NumOpsAdded = 1; return true; |