Add a llvm.copysign intrinsic
[oota-llvm.git] / lib / CodeGen / TargetLoweringBase.cpp
index 55125bd23f9fd60cc6189517233353cf88d16d56..a2ea35e64a193b958eaff7341ec30ecc21abfac6 100644 (file)
@@ -697,6 +697,11 @@ void TargetLoweringBase::initActions() {
 
     // These library functions default to expand.
     setOperationAction(ISD::FROUND, (MVT::SimpleValueType)VT, Expand);
+
+    // These operations default to expand for vector types.
+    if (VT >= MVT::FIRST_VECTOR_VALUETYPE &&
+        VT <= MVT::LAST_VECTOR_VALUETYPE)
+      setOperationAction(ISD::FCOPYSIGN, (MVT::SimpleValueType)VT, Expand);
   }
 
   // Most targets ignore the @llvm.prefetch intrinsic.