new testcase

llvm-svn: 23016
This commit is contained in:
Chris Lattner 2005-08-24 17:20:30 +00:00
parent 898e50ecb3
commit 16a382df29
2 changed files with 11 additions and 1 deletions

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)

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
}