aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/fastcc-2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/fastcc-2.ll')
-rw-r--r--test/CodeGen/X86/fastcc-2.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fastcc-2.ll b/test/CodeGen/X86/fastcc-2.ll
new file mode 100644
index 0000000..40c753e
--- /dev/null
+++ b/test/CodeGen/X86/fastcc-2.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin -mattr=+sse2 | grep movsd
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin -mattr=+sse2 | grep mov | count 1
+
+define i32 @foo() nounwind {
+entry:
+ tail call fastcc void @bar( double 1.000000e+00 ) nounwind
+ ret i32 0
+}
+
+declare fastcc void @bar(double)