Stop inventing new words. :-)
[oota-llvm.git] / lib / Target / X86 / X86ISelLowering.cpp
index f4e1cb11c9342cf3e502f04f7a58e06f095f4269..48f4f15159417435e220c690cae3082c3028fe5f 100644 (file)
@@ -418,6 +418,10 @@ X86TargetLowering::X86TargetLowering(TargetMachine &TM)
   setOperationAction(ISD::UNDEF,     MVT::f80, Expand);
   setOperationAction(ISD::FCOPYSIGN, MVT::f80, Expand);
   setOperationAction(ISD::ConstantFP, MVT::f80, Expand);
+  if (!UnsafeFPMath) {
+    setOperationAction(ISD::FSIN           , MVT::f80  , Expand);
+    setOperationAction(ISD::FCOS           , MVT::f80  , Expand);
+  }
 
   // First set operation action for all vector types to expand. Then we
   // will selectively turn on ones that can be effectively codegen'd.