Fix CodeGen/PowerPC/2004-11-30-shr-var-crash.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18376 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-11-30 06:40:04 +00:00
parent aac2d44bc3
commit 35f2bbe8c6

View File

@ -2870,7 +2870,7 @@ void PPC32ISel::emitShiftOperation(MachineBasicBlock *MBB,
// Select correct least significant half if the shift amount > 32
BB = TmpMBB;
unsigned OrReg = makeAnotherReg(Type::IntTy);
BuildMI(BB, PPC::OR, 2, OrReg).addReg(TmpReg6).addImm(TmpReg6);
BuildMI(BB, PPC::OR, 2, OrReg).addReg(TmpReg6).addReg(TmpReg6);
TmpMBB->addSuccessor(PhiMBB);
BB = PhiMBB;