[llvm-commits] [llvm] r40675 - /llvm/trunk/test/CodeGen/X86/sse-align-11.ll
Chris Lattner
sabre at nondot.org
Wed Aug 1 10:10:30 PDT 2007
Author: lattner
Date: Wed Aug 1 12:10:30 2007
New Revision: 40675
URL: http://llvm.org/viewvc/llvm-project?rev=40675&view=rev
Log:
we're now handling this right :)
Added:
llvm/trunk/test/CodeGen/X86/sse-align-11.ll
Added: llvm/trunk/test/CodeGen/X86/sse-align-11.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-align-11.ll?rev=40675&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-align-11.ll (added)
+++ llvm/trunk/test/CodeGen/X86/sse-align-11.ll Wed Aug 1 12:10:30 2007
@@ -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
+}
+
More information about the llvm-commits
mailing list