mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-15 09:33:39 +00:00
Encode the register operand of ARM CondCode operands correctly. ARM::CPSR if
the instruction is predicated, reg0 otherwise. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d67641b6f8
commit
04f74942f2
@ -263,8 +263,8 @@ public:
|
||||
void addCondCodeOperands(MCInst &Inst, unsigned N) const {
|
||||
assert(N == 2 && "Invalid number of operands!");
|
||||
Inst.addOperand(MCOperand::CreateImm(unsigned(getCondCode())));
|
||||
// FIXME: What belongs here?
|
||||
Inst.addOperand(MCOperand::CreateReg(0));
|
||||
unsigned RegNum = getCondCode() == ARMCC::AL ? 0: ARM::CPSR;
|
||||
Inst.addOperand(MCOperand::CreateReg(RegNum));
|
||||
}
|
||||
|
||||
void addCCOutOperands(MCInst &Inst, unsigned N) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user