Re-implement the main strength-reduction portion of LoopStrengthReduction.
[oota-llvm.git] / test / CodeGen / X86 / widen_select-1.ll
1 ; RUN: llc < %s -march=x86 -mattr=+sse42 -disable-mmx | FileCheck %s
2 ; CHECK: jne
3
4 ; widening select v6i32 and then a sub
5
6 define void @select(i1 %c, <6 x i32>* %dst.addr, <6 x i32> %src1,<6 x i32> %src2) nounwind {
7 entry:
8         %x = select i1 %c, <6 x i32> %src1, <6 x i32> %src2
9         %val = sub <6 x i32> %x, < i32 1, i32 1, i32 1, i32 1, i32 1, i32 1 >
10         store <6 x i32> %val, <6 x i32>* %dst.addr
11         ret void
12 }