Fix an assert compiling MallocBench/gs
authorChris Lattner <sabre@nondot.org>
Wed, 26 Oct 2005 18:01:11 +0000 (18:01 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 26 Oct 2005 18:01:11 +0000 (18:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24017 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index 4deff28bf069bd27c663e7e6dcdd825fd9c71362..30525cffd067ea00f694f98850fa15518159caf1 100644 (file)
@@ -217,7 +217,7 @@ SDOperand PPCTargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
         if (LHS.getValueType() == MVT::f32)   // Comparison is always 64-bits
           LHS = DAG.getNode(ISD::FP_EXTEND, MVT::f64, LHS);
         return DAG.getNode(PPCISD::FSEL, ResVT,
-                           DAG.getNode(ISD::FNEG, ResVT, LHS), TV, FV);
+                           DAG.getNode(ISD::FNEG, MVT::f64, LHS), TV, FV);
       }
     
     SDOperand Cmp;