Make sure this tests the right thing, xfail on solaris, which doesn't have floorf
[oota-llvm.git] / test / Transforms / SimplifyLibCalls / floor.ll
1 ; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*floor(' &&
2 ; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | grep 'call.*floorf('
3
4 ; XFAIL: sparc
5
6 declare double %floor(double)
7
8 float %test(float %C) {
9         %D = cast float %C to double
10         %E = call double %floor(double %D)  ; --> floorf
11         %F = cast double %E to float
12         ret float %F
13 }
14