R600/SI: Temporary fix for f64 fneg
[oota-llvm.git] / lib / Target / R600 / SIISelLowering.cpp
index 846aeb63093a13587bf1c9ff6cbf870c26ef86f8..f9b466709afb99716cc897d8ea4479eef092e355 100644 (file)
@@ -212,6 +212,10 @@ SITargetLowering::SITargetLowering(TargetMachine &TM) :
     setOperationAction(ISD::FRINT, MVT::f64, Legal);
   }
 
+  // FIXME: This should be removed and handled the same was as f32 fneg. Source
+  // modifiers also work for the double instructions.
+  setOperationAction(ISD::FNEG, MVT::f64, Expand);
+
   setTargetDAGCombine(ISD::SELECT_CC);
   setTargetDAGCombine(ISD::SETCC);