llvm.org GIT mirror llvm / 7eef54e
Merging r213883: ------------------------------------------------------------------------ r213883 | compnerd | 2014-07-24 10:46:36 -0700 (Thu, 24 Jul 2014) | 5 lines X86: correct library call setup for Windows itanium 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. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_35@214686 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 6 years ago
2 changed file(s) with 17 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
425425 TLI.setUnavailable(LibFunc::fiprintf);
426426 }
427427
428 if (T.isKnownWindowsMSVCEnvironment()) {
428 if (T.isKnownWindowsMSVCEnvironment() || T.isWindowsItaniumEnvironment()) {
429429 // Win32 does not support long double
430430 TLI.setUnavailable(LibFunc::acosl);
431431 TLI.setUnavailable(LibFunc::asinl);
0 ; RUN: opt -mtriple i686-windows-itanium -O2 -o - %s | llvm-dis | FileCheck %s
1
2 target triple = "i686-windows-itanium"
3
4 declare dllimport double @floor(double)
5
6 define dllexport float @test(float %f) {
7 %conv = fpext float %f to double
8 %call = tail call double @floor(double %conv)
9 %cast = fptrunc double %call to float
10 ret float %cast
11 }
12
13 ; CHECK-NOT: floorf
14 ; CHECK: floor
15