mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
ac19376e7b
This target is identical to the Windows MSVC (and follows Microsoft ABI for C). Correct the library call setup for this target. The same set of library calls are missing on this environment. llvm-svn: 213883
17 lines
382 B
LLVM
17 lines
382 B
LLVM
; RUN: opt -mtriple i686-windows-itanium -O2 -o - %s | llvm-dis | FileCheck %s
|
|
|
|
target triple = "i686-windows-itanium"
|
|
|
|
declare dllimport double @floor(double)
|
|
|
|
define dllexport float @test(float %f) {
|
|
%conv = fpext float %f to double
|
|
%call = tail call double @floor(double %conv)
|
|
%cast = fptrunc double %call to float
|
|
ret float %cast
|
|
}
|
|
|
|
; CHECK-NOT: floorf
|
|
; CHECK: floor
|
|
|