Dan Gohman | 0a06310 | 2009-09-08 23:54:48 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -march=x86 -mattr=sse41 -o %t |
Mon P Wang | 7bfa464 | 2008-11-16 05:06:27 +0000 | [diff] [blame] | 2 | ; RUN: grep addps %t | count 2 |
| 3 | ; RUN: grep mulps %t | count 2 |
| 4 | ; RUN: grep subps %t | count 2 |
| 5 | |
| 6 | ; ModuleID = 'vec_shuffle-27.bc' |
| 7 | target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" |
| 8 | target triple = "i686-apple-cl.1.0" |
| 9 | |
| 10 | define <8 x float> @my2filter4_1d(<4 x float> %a, <8 x float> %T0, <8 x float> %T1) nounwind readnone { |
| 11 | entry: |
| 12 | %tmp7 = shufflevector <4 x float> %a, <4 x float> undef, <8 x i32> < i32 0, i32 1, i32 2, i32 3, i32 0, i32 1, i32 2, i32 3 > ; <<8 x float>> [#uses=1] |
Dan Gohman | 7ce405e | 2009-06-04 22:49:04 +0000 | [diff] [blame] | 13 | %sub = fsub <8 x float> %T1, %T0 ; <<8 x float>> [#uses=1] |
| 14 | %mul = fmul <8 x float> %sub, %tmp7 ; <<8 x float>> [#uses=1] |
| 15 | %add = fadd <8 x float> %mul, %T0 ; <<8 x float>> [#uses=1] |
Mon P Wang | 7bfa464 | 2008-11-16 05:06:27 +0000 | [diff] [blame] | 16 | ret <8 x float> %add |
| 17 | } |