1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 23:42:52 +01:00
llvm-mirror/test/Regression/Transforms/SimplifyLibCalls/floor.ll
Chris Lattner 3ad034058e new testcase
llvm-svn: 23016
2005-08-24 17:20:30 +00:00

12 lines
265 B
LLVM

; 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
}