new testcase
authorChris Lattner <sabre@nondot.org>
Wed, 24 Aug 2005 17:20:30 +0000 (17:20 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 24 Aug 2005 17:20:30 +0000 (17:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23016 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/SimplifyLibCalls/Pow.ll
test/Transforms/SimplifyLibCalls/floor.ll [new file with mode: 0644]

index 721f627ed381b1d1d5c10d9034d6c14879bd5054..4b10ed077ca7a2efc462a8a231d69edde0bcb2c0 100644 (file)
@@ -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 (file)
index 0000000..542ff57
--- /dev/null
@@ -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
+}
+