mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Fix 255.vortex by using getClassB instead of getClass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
916f96ace0
commit
8d963e602b
@ -605,7 +605,6 @@ void ISel::copyConstantToRegister(MachineBasicBlock *MBB,
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
std::cerr << "Unhandled integer constant!\n";
|
||||
abort();
|
||||
} else if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
|
||||
@ -1243,7 +1242,7 @@ void ISel::emitSelectOperation(MachineBasicBlock *MBB,
|
||||
BuildMI(BB, PPC::PHI, 4, DestReg).addReg(FalseValue)
|
||||
.addMBB(copy0MBB).addReg(TrueValue).addMBB(copy1MBB);
|
||||
// For a register pair representing a long value, define the second reg
|
||||
if (getClass(TrueVal->getType()) == cLong)
|
||||
if (getClassB(TrueVal->getType()) == cLong)
|
||||
BuildMI(BB, PPC::LI, 1, DestReg+1).addImm(0);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user