mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
While I'm at it, don't break codegen of mul by 3,5,9.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15013 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
596b97f1ab
commit
4771288fe3
@ -2352,7 +2352,7 @@ void ISel::doMultiplyConst(MachineBasicBlock *MBB,
|
||||
case 5:
|
||||
case 9:
|
||||
if (Class == cInt) {
|
||||
addFullAddress(BuildMI(*MBB, IP, X86::LEA32r, 5, TmpReg),
|
||||
addFullAddress(BuildMI(*MBB, IP, X86::LEA32r, 5, DestReg),
|
||||
op0Reg, ConstRHS-1, op0Reg, 0);
|
||||
return;
|
||||
}
|
||||
|
@ -2352,7 +2352,7 @@ void ISel::doMultiplyConst(MachineBasicBlock *MBB,
|
||||
case 5:
|
||||
case 9:
|
||||
if (Class == cInt) {
|
||||
addFullAddress(BuildMI(*MBB, IP, X86::LEA32r, 5, TmpReg),
|
||||
addFullAddress(BuildMI(*MBB, IP, X86::LEA32r, 5, DestReg),
|
||||
op0Reg, ConstRHS-1, op0Reg, 0);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user