Add minnum / maxnum codegen
[oota-llvm.git] / lib / Target / R600 / AMDGPUISelLowering.cpp
index 37c444d220fc9ff4925ad7bdaa8f53dfc0ba7988..2ac20db6dc7f6254ebc90fbdf3cc747283f6f8ca 100644 (file)
@@ -347,6 +347,8 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
 
   for (MVT VT : FloatVectorTypes) {
     setOperationAction(ISD::FABS, VT, Expand);
+    setOperationAction(ISD::FMINNUM, VT, Expand);
+    setOperationAction(ISD::FMAXNUM, VT, Expand);
     setOperationAction(ISD::FADD, VT, Expand);
     setOperationAction(ISD::FCEIL, VT, Expand);
     setOperationAction(ISD::FCOS, VT, Expand);