mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix bug recognizing moves: isMoveInstr should only treat ORs with %g0 as
moves, not all ORs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16576 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bcf2ad296f
commit
9b8ed0e04a
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user