summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/sse-varargs.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-01-22 23:26:53 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-01-22 23:26:53 +0000
commit1e0d4d2aa8471c0534d578bc65940ece6f88622f (patch)
treed8521c302a5cfa7e4f4273a61446e475593bd3a3 /llvm/test/CodeGen/X86/sse-varargs.ll
parent0a71ad2e07388c3c0e825bd264dddd549dfc9aea (diff)
downloadbcm5719-llvm-1e0d4d2aa8471c0534d578bc65940ece6f88622f.tar.gz
bcm5719-llvm-1e0d4d2aa8471c0534d578bc65940ece6f88622f.zip
SSE varargs arguments are passed in memory.
llvm-svn: 46262
Diffstat (limited to 'llvm/test/CodeGen/X86/sse-varargs.ll')
-rw-r--r--llvm/test/CodeGen/X86/sse-varargs.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/sse-varargs.ll b/llvm/test/CodeGen/X86/sse-varargs.ll
new file mode 100644
index 00000000000..806126da2fa
--- /dev/null
+++ b/llvm/test/CodeGen/X86/sse-varargs.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep xmm | grep esp
+
+define i32 @t() nounwind {
+entry:
+ tail call void (i32, ...)* @foo( i32 1, <4 x i32> < i32 10, i32 11, i32 12, i32 13 > ) nounwind
+ ret i32 0
+}
+
+declare void @foo(i32, ...)
OpenPOWER on IntegriCloud