From: Chris Lattner Date: Wed, 26 Oct 2005 18:01:11 +0000 (+0000) Subject: Fix an assert compiling MallocBench/gs X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=85fd97dc8810ac16197594304f9f985a13466d19;p=oota-llvm.git Fix an assert compiling MallocBench/gs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24017 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 4deff28bf06..30525cffd06 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -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;