summaryrefslogtreecommitdiffstats
path: root/test/MC/X86/x86-windows-itanium-libcalls.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/X86/x86-windows-itanium-libcalls.ll')
-rw-r--r--test/MC/X86/x86-windows-itanium-libcalls.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/MC/X86/x86-windows-itanium-libcalls.ll b/test/MC/X86/x86-windows-itanium-libcalls.ll
new file mode 100644
index 0000000..773d03b
--- /dev/null
+++ b/test/MC/X86/x86-windows-itanium-libcalls.ll
@@ -0,0 +1,16 @@
+; 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
+