mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Cleanup PPC RLWINM8 vs RLWINM
No test case: output assembly will be identical. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
504d1d2fa4
commit
17d2dbd5f9
@ -528,7 +528,7 @@ void PPCRegisterInfo::lowerCRRestore(MachineBasicBlock::iterator II,
|
||||
if (DestReg != PPC::CR0) {
|
||||
unsigned ShiftBits = getPPCRegisterNumbering(DestReg)*4;
|
||||
// rlwinm r11, r11, 32-ShiftBits, 0, 31.
|
||||
BuildMI(MBB, II, dl, TII.get(PPC::RLWINM), Reg)
|
||||
BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg)
|
||||
.addReg(Reg).addImm(32-ShiftBits).addImm(0)
|
||||
.addImm(31);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user