mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 01:31:05 +00:00
Fix CodeGen/Generic/div-neg-power-2.ll, a regression from last night.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22726 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dd8ffdd685
commit
2f46055cc2
@ -1871,6 +1871,8 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
|
||||
return Result;
|
||||
} else if ((signed)Tmp3 < 0 && isPowerOf2_32(-Tmp3)) {
|
||||
Tmp3 = Log2_32(-Tmp3);
|
||||
Tmp2 = SelectExpr(N.getOperand(0));
|
||||
Tmp1 = MakeReg(MVT::i32);
|
||||
unsigned Tmp4 = MakeReg(MVT::i32);
|
||||
BuildMI(BB, PPC::SRAWI, 2, Tmp1).addReg(Tmp2).addImm(Tmp3);
|
||||
BuildMI(BB, PPC::ADDZE, 1, Tmp4).addReg(Tmp1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user