new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2005-08-24 17:20:30 +00:00
parent ab466d769a
commit 890226dd34
2 changed files with 11 additions and 1 deletions
-1
View 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)
+11
View File
@@ -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
}