Dan Gohman | 36a0947 | 2009-09-08 23:54:48 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -march=x86 -mcpu=yonah -mtriple=i686-apple-darwin8 | grep movaps |
| 2 | ; RUN: llc < %s -march=x86 -mcpu=yonah -mtriple=linux | grep movups |
Chris Lattner | b59e985 | 2007-08-01 17:10:30 +0000 | [diff] [blame] | 3 | |
Evan Cheng | 687bcb2 | 2008-05-07 22:59:08 +0000 | [diff] [blame] | 4 | define <4 x float> @foo(float %a, float %b, float %c, float %d) nounwind { |
Chris Lattner | b59e985 | 2007-08-01 17:10:30 +0000 | [diff] [blame] | 5 | entry: |
| 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 | |