mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
12 lines
265 B
LLVM
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
|
||
|
}
|
||
|
|