mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Fix test/Regression/CodeGen/PowerPC/2004-11-29-ShrCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18374 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d510293e24
commit
e74ed0d53b
@ -2910,7 +2910,9 @@ void PPC32ISel::emitShiftOperation(MachineBasicBlock *MBB,
|
||||
return;
|
||||
|
||||
unsigned SrcReg = getReg (Op, MBB, IP);
|
||||
if (isLeftShift) {
|
||||
if (Amount == 0) {
|
||||
BuildMI(*MBB, IP, PPC::OR, 2, DestReg).addReg(SrcReg).addReg(SrcReg);
|
||||
} else if (isLeftShift) {
|
||||
BuildMI(*MBB, IP, PPC::RLWINM, 4, DestReg).addReg(SrcReg)
|
||||
.addImm(Amount).addImm(0).addImm(31-Amount);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user