summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2008-09-25-sseregparm-1.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/2008-09-25-sseregparm-1.ll')
-rw-r--r--test/CodeGen/X86/2008-09-25-sseregparm-1.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-09-25-sseregparm-1.ll b/test/CodeGen/X86/2008-09-25-sseregparm-1.ll
new file mode 100644
index 0000000000..d103f144e2
--- /dev/null
+++ b/test/CodeGen/X86/2008-09-25-sseregparm-1.ll
@@ -0,0 +1,19 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movs | count 2
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep fld | count 2
+; check 'inreg' attribute for sse_regparm
+
+define double @foo1() inreg nounwind {
+ ret double 1.0
+}
+
+define float @foo2() inreg nounwind {
+ ret float 1.0
+}
+
+define double @bar() nounwind {
+ ret double 1.0
+}
+
+define float @bar2() nounwind {
+ ret float 1.0
+}