Add a vselect test case.
[oota-llvm.git] / test / CodeGen / X86 / vec_select.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse
2
3 void %test(int %C, <4 x float>* %A, <4 x float>* %B) {
4         %tmp = load <4 x float>* %A
5         %tmp3 = load <4 x float>* %B
6         %tmp9 = mul <4 x float> %tmp3, %tmp3
7         %tmp = seteq int %C, 0
8         %iftmp.38.0 = select bool %tmp, <4 x float> %tmp9, <4 x float> %tmp
9         store <4 x float> %iftmp.38.0, <4 x float>* %A
10         ret void
11 }