mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
Fix more remaining 32-bit vestiges of PowerPC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15919 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cc55ad5fe9
commit
5e9867e71c
@ -2520,10 +2520,8 @@ void ISel::emitCastOperation(MachineBasicBlock *MBB,
|
||||
BuildMI(*MBB, IP, PPC::RLWINM, 4, DestReg).addReg(SrcReg)
|
||||
.addImm(0).addImm(clearBits).addImm(31);
|
||||
break;
|
||||
case cLong:
|
||||
++SrcReg;
|
||||
// Fall through
|
||||
case cInt:
|
||||
case cLong:
|
||||
if (DestClass == cInt)
|
||||
BuildMI(*MBB, IP, PPC::OR, 2, DestReg).addReg(SrcReg).addReg(SrcReg);
|
||||
else
|
||||
@ -2599,10 +2597,8 @@ void ISel::emitCastOperation(MachineBasicBlock *MBB,
|
||||
BuildMI(*MBB, IP, PPC::RLWINM, 4, DestReg).addReg(SrcReg).addImm(0)
|
||||
.addImm(16).addImm(31);
|
||||
break;
|
||||
case cLong:
|
||||
++SrcReg;
|
||||
// Fall through
|
||||
case cInt:
|
||||
case cLong:
|
||||
if (DestClass == cByte)
|
||||
BuildMI(*MBB, IP, PPC::EXTSB, 1, DestReg).addReg(SrcReg);
|
||||
else if (DestClass == cShort)
|
||||
|
Loading…
Reference in New Issue
Block a user