on darwin empty functions need to codegen into something of non-zero length,
[oota-llvm.git] / test / CodeGen / X86 / widen_shuffle-2.ll
1 ; RUN: llc < %s -march=x86 -mattr=+sse42 -disable-mmx | FileCheck %s
2 ; CHECK: insertps
3 ; CHECK: extractps
4
5 ; widening shuffle v3float and then a add
6
7 define void @shuf(<3 x float>* %dst.addr, <3 x float> %src1,<3 x float> %src2) nounwind {
8 entry:
9         %x = shufflevector <3 x float> %src1, <3 x float> %src2, <3 x i32> < i32 0, i32 4, i32 2>
10         %val = fadd <3 x float> %x, %src2
11         store <3 x float> %val, <3 x float>* %dst.addr
12         ret void
13 }