summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/sse-align-11.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-01 17:10:30 +0000
committerChris Lattner <sabre@nondot.org>2007-08-01 17:10:30 +0000
commitb59e985cdbc7d25a9af5b3c0bb0ad039db1c9fbf (patch)
tree9939e36304f4291499747faeb6cb7cea6e72485a /test/CodeGen/X86/sse-align-11.ll
parent268479f454049a0276beabcb1e0e3497157dde1f (diff)
downloadllvm-b59e985cdbc7d25a9af5b3c0bb0ad039db1c9fbf.tar.gz
llvm-b59e985cdbc7d25a9af5b3c0bb0ad039db1c9fbf.tar.bz2
llvm-b59e985cdbc7d25a9af5b3c0bb0ad039db1c9fbf.tar.xz
we're now handling this right :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/sse-align-11.ll')
-rw-r--r--test/CodeGen/X86/sse-align-11.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/sse-align-11.ll b/test/CodeGen/X86/sse-align-11.ll
new file mode 100644
index 0000000000..c4de9b192c
--- /dev/null
+++ b/test/CodeGen/X86/sse-align-11.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah -mtriple=darwin | grep movaps
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah -mtriple=linux | grep movups
+
+define <4 x float> @foo(float %a, float %b, float %c, float %d) {
+entry:
+ %tmp6 = insertelement <4 x float> undef, float %a, i32 0
+ %tmp7 = insertelement <4 x float> %tmp6, float %b, i32 1
+ %tmp8 = insertelement <4 x float> %tmp7, float %c, i32 2
+ %tmp9 = insertelement <4 x float> %tmp8, float %d, i32 3
+ ret <4 x float> %tmp9
+}
+