aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-24 17:20:30 +0000
committerChris Lattner <sabre@nondot.org>2005-08-24 17:20:30 +0000
commit890226dd34abbbd03fa2b026f7d920a8ebccecc4 (patch)
treec054c53ebd38e55928e183ec959a1ccf683fa3a4
parentab466d769aa33a6973a1e6e11fe2b803a7dbdabc (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23016 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/SimplifyLibCalls/Pow.ll1
-rw-r--r--test/Transforms/SimplifyLibCalls/floor.ll11
2 files changed, 11 insertions, 1 deletions
diff --git a/test/Transforms/SimplifyLibCalls/Pow.ll b/test/Transforms/SimplifyLibCalls/Pow.ll
index 721f627ed3..4b10ed077c 100644
--- a/test/Transforms/SimplifyLibCalls/Pow.ll
+++ b/test/Transforms/SimplifyLibCalls/Pow.ll
@@ -1,4 +1,3 @@
-; Test that the StrCatOptimizer works correctly
; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*pow'
declare double %pow(double,double)
diff --git a/test/Transforms/SimplifyLibCalls/floor.ll b/test/Transforms/SimplifyLibCalls/floor.ll
new file mode 100644
index 0000000000..542ff5706d
--- /dev/null
+++ b/test/Transforms/SimplifyLibCalls/floor.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*floor('
+
+declare double %floor(double)
+
+float %test(float %C) {
+ %D = cast float %C to double
+ %E = call double %floor(double %D) ; --> floorf
+ %F = cast double %E to float
+ ret float %F
+}
+