Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / CodeGen / X86 / vec_insert.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep movss  | wc -l | grep 1 &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep pinsrw | wc -l | grep 2
3
4 void %test(<4 x float>* %F, int %I) {
5         %tmp = load <4 x float>* %F
6         %f = cast int %I to float
7         %tmp1 = insertelement <4 x float> %tmp, float %f, uint 0
8         %tmp18 = add <4 x float> %tmp1, %tmp1
9         store <4 x float> %tmp18, <4 x float>* %F
10         ret void
11 }
12
13 void %test2(<4 x float>* %F, int %I, float %g) {
14         %tmp = load <4 x float>* %F
15         %f = cast int %I to float
16         %tmp1 = insertelement <4 x float> %tmp, float %f, uint 2
17         store <4 x float> %tmp1, <4 x float>* %F
18         ret void
19 }