mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Fix bork in doMultiply
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5021 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d7d3872fb0
commit
202a2d0e17
@ -684,10 +684,11 @@ ISel::doMultiply(unsigned destReg, const Type *resultType,
|
||||
/// with the EAX register explicitly.
|
||||
///
|
||||
void ISel::visitMul(BinaryOperator &I) {
|
||||
unsigned DestReg = getReg(I);
|
||||
unsigned Op0Reg = getReg(I.getOperand(0));
|
||||
unsigned Op1Reg = getReg(I.getOperand(1));
|
||||
MachineBasicBlock::iterator MBBI = BB->end();
|
||||
doMultiply (getReg (I), I.getType (),
|
||||
getReg (I.getOperand (0)), getReg (I.getOperand (1)),
|
||||
BB, MBBI);
|
||||
doMultiply(DestReg, I.getType(), Op0Reg, Op1Reg, BB, MBBI);
|
||||
}
|
||||
|
||||
|
||||
|
@ -684,10 +684,11 @@ ISel::doMultiply(unsigned destReg, const Type *resultType,
|
||||
/// with the EAX register explicitly.
|
||||
///
|
||||
void ISel::visitMul(BinaryOperator &I) {
|
||||
unsigned DestReg = getReg(I);
|
||||
unsigned Op0Reg = getReg(I.getOperand(0));
|
||||
unsigned Op1Reg = getReg(I.getOperand(1));
|
||||
MachineBasicBlock::iterator MBBI = BB->end();
|
||||
doMultiply (getReg (I), I.getType (),
|
||||
getReg (I.getOperand (0)), getReg (I.getOperand (1)),
|
||||
BB, MBBI);
|
||||
doMultiply(DestReg, I.getType(), Op0Reg, Op1Reg, BB, MBBI);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user