FpMOV is also a move instruction.

llvm-svn: 11055
This commit is contained in:
Alkis Evlogimenos 2004-02-01 08:22:16 +00:00
parent 84a84c38b7
commit aeb8a80c71
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ bool X86InstrInfo::isMoveInstr(const MachineInstr& MI,
unsigned& sourceReg,
unsigned& destReg) const {
MachineOpCode oc = MI.getOpcode();
if (oc == X86::MOVrr8 || oc == X86::MOVrr16 || oc == X86::MOVrr32) {
if (oc == X86::MOVrr8 || oc == X86::MOVrr16 || oc == X86::MOVrr32 ||
oc == X86::FpMOV) {
assert(MI.getNumOperands() == 2 &&
MI.getOperand(0).isRegister() &&
MI.getOperand(1).isRegister() &&