summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/widen_shuffle-2.ll
blob: 617cc1de4ba8ace152e01e7a32ba4c8334ad74be (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc < %s -march=x86 -mattr=+sse42 -disable-mmx -o %t

; widening shuffle v3float and then a add

define void @shuf(<3 x float>* %dst.addr, <3 x float> %src1,<3 x float> %src2) nounwind {
entry:
	%x = shufflevector <3 x float> %src1, <3 x float> %src2, <3 x i32> < i32 0, i32 4, i32 2>
	%val = fadd <3 x float> %x, %src2;
	store <3 x float> %val, <3 x float>* %dst.addr
	ret void
}
OpenPOWER on IntegriCloud