summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-10-02 17:43:59 +0000
committerDale Johannesen <dalej@apple.com>2007-10-02 17:43:59 +0000
commit4d4e77af8e9601d022aa4c5dc772d6c0d569eaac (patch)
treec79983c31e55a6c2b576e861120dfdd3a7f2fd1e /llvm/lib/Target/CBackend/CBackend.cpp
parent19d765fa6c67951145328d9671d67d7ae73afc6f (diff)
downloadbcm5719-llvm-4d4e77af8e9601d022aa4c5dc772d6c0d569eaac.tar.gz
bcm5719-llvm-4d4e77af8e9601d022aa4c5dc772d6c0d569eaac.zip
Rewrite sqrt and powi to use anyfloat. By popular demand.
llvm-svn: 42537
Diffstat (limited to 'llvm/lib/Target/CBackend/CBackend.cpp')
-rw-r--r--llvm/lib/Target/CBackend/CBackend.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp
index 6eef297dd66..343d6d7a5fa 100644
--- a/llvm/lib/Target/CBackend/CBackend.cpp
+++ b/llvm/lib/Target/CBackend/CBackend.cpp
@@ -2417,8 +2417,7 @@ void CWriter::lowerIntrinsics(Function &F) {
case Intrinsic::longjmp:
case Intrinsic::prefetch:
case Intrinsic::dbg_stoppoint:
- case Intrinsic::powi_f32:
- case Intrinsic::powi_f64:
+ case Intrinsic::powi:
// We directly implement these intrinsics
break;
default:
@@ -2537,8 +2536,7 @@ void CWriter::visitCallInst(CallInst &I) {
writeOperand(I.getOperand(1));
Out << ')';
return;
- case Intrinsic::powi_f32:
- case Intrinsic::powi_f64:
+ case Intrinsic::powi:
Out << "__builtin_powi(";
writeOperand(I.getOperand(1));
Out << ", ";
OpenPOWER on IntegriCloud