mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Remember to fill in some operands so we can print _something_ coherent even when decoding the CPS instruction soft-fails.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137997 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
14090bf263
commit
1dd56f05e1
@ -1340,9 +1340,12 @@ static DecodeStatus DecodeCPSInstruction(llvm::MCInst &Inst, unsigned Insn,
|
||||
Inst.setOpcode(ARM::CPS1p);
|
||||
Inst.addOperand(MCOperand::CreateImm(mode));
|
||||
if (iflags) CHECK(S, Unpredictable);
|
||||
} else
|
||||
} else {
|
||||
// imod == '00' && M == '0' --> UNPREDICTABLE
|
||||
Inst.setOpcode(ARM::CPS1p);
|
||||
Inst.addOperand(MCOperand::CreateImm(mode));
|
||||
CHECK(S, Unpredictable);
|
||||
}
|
||||
|
||||
return S;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user