mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 17:37:24 +00:00
e7ed39d2e9
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25524 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
363 B
LLVM
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
|
|
}
|
|
|