summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/tailcallfp.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/tailcallfp.ll')
-rw-r--r--test/CodeGen/X86/tailcallfp.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/X86/tailcallfp.ll b/test/CodeGen/X86/tailcallfp.ll
new file mode 100644
index 0000000000..f614935103
--- /dev/null
+++ b/test/CodeGen/X86/tailcallfp.ll
@@ -0,0 +1,5 @@
+; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel -tailcallopt | not grep call
+define fastcc i32 @bar(i32 %X, i32(double, i32) *%FP) {
+ %Y = tail call fastcc i32 %FP(double 0.0, i32 %X)
+ ret i32 %Y
+}