Fix bug recognizing moves: isMoveInstr should only treat ORs with %g0 as

moves, not all ORs.

llvm-svn: 16576
This commit is contained in:
Brian Gaeke 2004-09-29 03:28:15 +00:00
parent 86aaed6a34
commit 279e98a3b4

View File

@ -30,8 +30,8 @@ bool SparcV8InstrInfo::isMoveInstr(const MachineInstr &MI,
if (MI.getOperand(1).getReg() == V8::G0) { // X = or G0, Y -> X = Y
DstReg = MI.getOperand(0).getReg();
SrcReg = MI.getOperand(2).getReg();
return true;
}
return true;
} else if (MI.getOpcode() == V8::FMOVS) {
SrcReg = MI.getOperand(1).getReg();
DstReg = MI.getOperand(0).getReg();