Fix a CQ regression from my patch to split F32/F64 into seperate register
authorChris Lattner <sabre@nondot.org>
Fri, 7 Oct 2005 05:00:52 +0000 (05:00 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Oct 2005 05:00:52 +0000 (05:00 +0000)
classes on PPC.  We were emitting fmr instructions to do fp extensions, which
weren't getting coallesced.  This fixes Regression/CodeGen/PowerPC/fpcopy.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23654 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrInfo.cpp

index dc84075eba1c72357255a52c8e1aeeaf11f51aec..2af109935549159a5fbecc1ea2609b7f8bef058d 100644 (file)
@@ -57,7 +57,8 @@ bool PPC32InstrInfo::isMoveInstr(const MachineInstr& MI,
       destReg = MI.getOperand(0).getReg();
       return true;
     }
-  } else if (oc == PPC::FMRS || oc == PPC::FMRD) {      // fmr r1, r2
+  } else if (oc == PPC::FMRS || oc == PPC::FMRD ||
+             oc == PPC::FMRSD) {      // fmr r1, r2
     assert(MI.getNumOperands() == 2 &&
            MI.getOperand(0).isRegister() &&
            MI.getOperand(1).isRegister() &&