aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-11 09:33:28 +0000
committerChris Lattner <sabre@nondot.org>2006-02-11 09:33:28 +0000
commit92aa95fc76e51e4293f4b372e5508ab1f36dead5 (patch)
tree4f0574b4c4208376880ca2e2f3f015e8debee79a
parent255d8919b6049d2f5ccd18bcd0a938d679f3ab01 (diff)
This is implemented by the simplify-libcalls pass, not instcombine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26123 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/pow.ll23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/Transforms/InstCombine/pow.ll b/test/Transforms/InstCombine/pow.ll
deleted file mode 100644
index 3dc0708471..0000000000
--- a/test/Transforms/InstCombine/pow.ll
+++ /dev/null
@@ -1,23 +0,0 @@
-; Testcase for calls to the standard C "pow" function
-;
-; Equivalent to: http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01786.html
-; XFAIL: *
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'call double .pow'
-
-declare double %pow(double, double)
-
-double %test1(double %X) {
- %Y = call double %pow(double %X, double 0.0)
- ret double %Y ; x^0.0 always equals 0.0
-}
-
-double %test2(double %X) {
- %Y = call double %pow(double %X, double -0.0)
- ret double %Y ; x^-0.0 always equals 0.0
-}
-
-double %test3(double %X) {
- %Y = call double %pow(double 1.0, double %X)
- ret double %Y ; 1.0^x always equals 1.0
-}
-