mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
Fix a bug where we were passing the wrong number of arguments to an
instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22901 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
957e574b30
commit
27d53ba6dd
@ -469,7 +469,10 @@ void ISel::MoveCRtoGPR(unsigned CCReg, ISD::CondCode CC, unsigned Result){
|
||||
BuildMI(BB, PPC::MCRF, 1, PPC::CR7).addReg(CCReg);
|
||||
bool GPOpt =
|
||||
TLI.getTargetMachine().getSubtarget<PPCSubtarget>().isGigaProcessor();
|
||||
BuildMI(BB, GPOpt ? PPC::MFOCRF : PPC::MFCR, 1, IntCR).addReg(PPC::CR7);
|
||||
if (GPOpt)
|
||||
BuildMI(BB, PPC::MFOCRF, 1, IntCR).addReg(PPC::CR7);
|
||||
else
|
||||
BuildMI(BB, PPC::MFCR, 0, IntCR);
|
||||
if (Inv) {
|
||||
unsigned Tmp1 = MakeIntReg();
|
||||
BuildMI(BB, PPC::RLWINM, 4, Tmp1).addReg(IntCR).addImm(32-(3-Idx))
|
||||
|
Loading…
Reference in New Issue
Block a user