diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index ab6c14f5562..15d3e144aae 100644 --- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -1012,7 +1012,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) { if (Ty == MVT::f32) CurDAG->SelectNodeTo(N, PPC::FNEGS, MVT::f32, Val); else - CurDAG->SelectNodeTo(N, PPC::FNEGS, MVT::f64, Val); + CurDAG->SelectNodeTo(N, PPC::FNEGD, MVT::f64, Val); return SDOperand(N, 0); } case ISD::FSQRT: {