aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/IntrinsicLowering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/IntrinsicLowering.cpp')
-rw-r--r--lib/CodeGen/IntrinsicLowering.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/CodeGen/IntrinsicLowering.cpp b/lib/CodeGen/IntrinsicLowering.cpp
index 42b09c2d3a..0a2f0d6a51 100644
--- a/lib/CodeGen/IntrinsicLowering.cpp
+++ b/lib/CodeGen/IntrinsicLowering.cpp
@@ -794,6 +794,24 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
Type::DoubleTy, sqrtFCache);
break;
}
+ case Intrinsic::sqrt_f80: {
+ static Constant *sqrtF80Cache = 0;
+ ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(),
+ Type::X86_FP80Ty, sqrtF80Cache);
+ break;
+ }
+ case Intrinsic::sqrt_f128: {
+ static Constant *sqrtF128Cache = 0;
+ ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(),
+ Type::FP128Ty, sqrtF128Cache);
+ break;
+ }
+ case Intrinsic::sqrt_ppcf128: {
+ static Constant *sqrtppcF128Cache = 0;
+ ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(),
+ Type::PPC_FP128Ty, sqrtppcF128Cache);
+ break;
+ }
}
assert(CI->use_empty() &&