mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Tighten Thumb1 branch predicate decoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -592,6 +592,9 @@ static bool DecodeQPRRegisterClass(llvm::MCInst &Inst, unsigned RegNo,
|
||||
static bool DecodePredicateOperand(llvm::MCInst &Inst, unsigned Val,
|
||||
uint64_t Address, const void *Decoder) {
|
||||
if (Val == 0xF) return false;
|
||||
// AL predicate is not allowed on Thumb1 branches.
|
||||
if (Inst.getOpcode() == ARM::tBcc && Val == 0xE)
|
||||
return false;
|
||||
Inst.addOperand(MCOperand::CreateImm(Val));
|
||||
if (Val == ARMCC::AL) {
|
||||
Inst.addOperand(MCOperand::CreateReg(0));
|
||||
|
Reference in New Issue
Block a user