mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
Use the correct register class here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115906 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
338c253d7e
commit
5d18d92aad
@ -943,7 +943,9 @@ bool ARMFastISel::SelectCmp(const Instruction *I) {
|
||||
// Now set a register based on the comparison. Explicitly set the predicates
|
||||
// here.
|
||||
unsigned MovCCOpc = isThumb ? ARM::t2MOVCCi : ARM::MOVCCi;
|
||||
unsigned DestReg = createResultReg(ARM::GPRRegisterClass);
|
||||
TargetRegisterClass *RC = isThumb ? ARM::rGPRRegisterClass
|
||||
: ARM::GPRRegisterClass;
|
||||
unsigned DestReg = createResultReg(RC);
|
||||
Constant *Zero
|
||||
= ConstantInt::get(Type::getInt32Ty(*Context), 0);
|
||||
unsigned ZeroReg = TargetMaterializeConstant(Zero);
|
||||
|
Loading…
x
Reference in New Issue
Block a user