blob: a10b102c6b952cb2ea1a160942e7edd0ff784b61 [file] [log] [blame]
Chris Lattner2b281872008-01-02 22:21:45 +00001; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah -mtriple=i686-apple-darwin8 | grep movaps
Chris Lattnerc3ed3682007-08-01 17:10:30 +00002; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah -mtriple=linux | grep movups
3
Evan Cheng18950d92008-05-07 22:59:08 +00004define <4 x float> @foo(float %a, float %b, float %c, float %d) nounwind {
Chris Lattnerc3ed3682007-08-01 17:10:30 +00005entry:
6 %tmp6 = insertelement <4 x float> undef, float %a, i32 0
7 %tmp7 = insertelement <4 x float> %tmp6, float %b, i32 1
8 %tmp8 = insertelement <4 x float> %tmp7, float %c, i32 2
9 %tmp9 = insertelement <4 x float> %tmp8, float %d, i32 3
10 ret <4 x float> %tmp9
11}
12