fix a bug in my last checkin

llvm-svn: 25965
This commit is contained in:
Chris Lattner 2006-02-04 07:48:46 +00:00
parent 2959f0003e
commit d096b2f3e0
1 changed files with 2 additions and 2 deletions

View File

@ -40,12 +40,12 @@ bool SparcV8InstrInfo::isMoveInstr(const MachineInstr &MI,
DstReg = MI.getOperand(0).getReg();
SrcReg = MI.getOperand(2).getReg();
return true;
} else if (MI.getOperand (2).getReg() == V8::G0) {
} else if (MI.getOperand(2).getReg() == V8::G0) {
DstReg = MI.getOperand(0).getReg();
SrcReg = MI.getOperand(1).getReg();
return true;
}
} else if (MI.getOpcode() == V8::ORri || MI.getOpcode() == V8::ADDri &&
} else if ((MI.getOpcode() == V8::ORri || MI.getOpcode() == V8::ADDri) &&
isZeroImm(MI.getOperand(2)) && MI.getOperand(1).isRegister()) {
DstReg = MI.getOperand(0).getReg();
SrcReg = MI.getOperand(1).getReg();