fix code that was accidentally commented out in previous commit
[oota-llvm.git] / lib / CodeGen / IntrinsicLowering.cpp
index 4ec3bae6f67a7841e664410b1ab815b2390bfb70..2c95e9e7d0d3f5f3dae887c54b3304720a4cbd04 100644 (file)
@@ -536,10 +536,26 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
     ReplaceFPIntrinsicWithCall(CI, "cosf", "cos", "cosl");
     break;
   }
+  case Intrinsic::floor: {
+    ReplaceFPIntrinsicWithCall(CI, "floorf", "floor", "floorl");
+    break;
+  }
   case Intrinsic::ceil: {
     ReplaceFPIntrinsicWithCall(CI, "ceilf", "ceil", "ceill");
     break;
   }
+  case Intrinsic::trunc: {
+    ReplaceFPIntrinsicWithCall(CI, "truncf", "trunc", "truncl");
+    break;
+  }
+  case Intrinsic::round: {
+    ReplaceFPIntrinsicWithCall(CI, "roundf", "round", "roundl");
+    break;
+  }
+  case Intrinsic::copysign: {
+    ReplaceFPIntrinsicWithCall(CI, "copysignf", "copysign", "copysignl");
+    break;
+  }
   case Intrinsic::flt_rounds:
      // Lower to "round to the nearest"
      if (!CI->getType()->isVoidTy())