2013-08-23 20:39:19 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mcpu=penryn -mattr=sse4.1 | FileCheck %s
|
2008-11-16 05:06:27 +00:00
|
|
|
|
|
|
|
; ModuleID = 'vec_shuffle-27.bc'
|
|
|
|
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"
|
|
|
|
target triple = "i686-apple-cl.1.0"
|
|
|
|
|
|
|
|
define <8 x float> @my2filter4_1d(<4 x float> %a, <8 x float> %T0, <8 x float> %T1) nounwind readnone {
|
|
|
|
entry:
|
2010-12-19 23:55:53 +00:00
|
|
|
; CHECK: subps
|
2013-06-25 02:48:58 +00:00
|
|
|
; CHECK: subps
|
|
|
|
; CHECK: mulps
|
2013-10-15 23:33:07 +00:00
|
|
|
; CHECK: mulps
|
|
|
|
; CHECK: addps
|
2010-12-19 23:55:53 +00:00
|
|
|
; CHECK: addps
|
2008-11-16 05:06:27 +00:00
|
|
|
%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]
|
2009-06-04 22:49:04 +00:00
|
|
|
%sub = fsub <8 x float> %T1, %T0 ; <<8 x float>> [#uses=1]
|
|
|
|
%mul = fmul <8 x float> %sub, %tmp7 ; <<8 x float>> [#uses=1]
|
|
|
|
%add = fadd <8 x float> %mul, %T0 ; <<8 x float>> [#uses=1]
|
2008-11-16 05:06:27 +00:00
|
|
|
ret <8 x float> %add
|
|
|
|
}
|
2010-12-19 23:55:53 +00:00
|
|
|
|
2010-12-20 00:54:26 +00:00
|
|
|
; Test case for r122206
|
2010-12-19 23:55:53 +00:00
|
|
|
define void @test2(<4 x i64>* %ap, <4 x i64>* %bp) nounwind {
|
|
|
|
entry:
|
2010-12-20 00:54:26 +00:00
|
|
|
; CHECK: movdqa
|
2010-12-19 23:55:53 +00:00
|
|
|
%a = load <4 x i64> * %ap
|
|
|
|
%b = load <4 x i64> * %bp
|
|
|
|
%mulaa = mul <4 x i64> %a, %a
|
|
|
|
%mulbb = mul <4 x i64> %b, %b
|
|
|
|
%mulab = mul <4 x i64> %a, %b
|
|
|
|
%vect1271 = shufflevector <4 x i64> %mulaa, <4 x i64> %mulbb, <4 x i32> <i32 0, i32 4, i32 undef, i32 undef>
|
|
|
|
%vect1272 = shufflevector <4 x i64> %mulaa, <4 x i64> %mulbb, <4 x i32> <i32 1, i32 5, i32 undef, i32 undef>
|
|
|
|
%vect1487 = shufflevector <4 x i64> %vect1271, <4 x i64> %mulab, <4 x i32> <i32 0, i32 1, i32 2, i32 4>
|
|
|
|
%vect1488 = shufflevector <4 x i64> %vect1272, <4 x i64> %mulab, <4 x i32> <i32 0, i32 1, i32 2, i32 5>
|
|
|
|
store <4 x i64> %vect1487, <4 x i64>* %ap
|
|
|
|
store <4 x i64> %vect1488, <4 x i64>* %bp
|
|
|
|
ret void;
|
2012-04-27 07:11:58 +00:00
|
|
|
}
|