new testcase
[oota-llvm.git] / test / Transforms / SimplifyLibCalls / floor.ll
1 ; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*floor('
2
3 declare double %floor(double)
4
5 float %test(float %C) {
6         %D = cast float %C to double
7         %E = call double %floor(double %D)  ; --> floorf
8         %F = cast double %E to float
9         ret float %F
10 }
11