llvm-6502/test/Transforms/SimplifyLibCalls/floor.ll
2006-01-23 05:56:34 +00:00

15 lines
363 B
LLVM

; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*floor(' &&
; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | grep 'call.*floorf('
; XFAIL: sparc
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
}