Rename this file
[oota-llvm.git] / test / CodeGen / PowerPC / buildvec_canonicalize.ll
1 ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 --enable-unsafe-fp-math | grep vxor | wc -l | grep 1
2 ; There should be exactly one vxor here.
3
4 void %test(<4 x float>* %P1, <4 x int>* %P2, <4 x float>* %P3) {
5         %tmp = load <4 x float>* %P3
6         %tmp3 = load <4 x float>* %P1
7         %tmp4 = mul <4 x float> %tmp, %tmp3
8         store <4 x float> %tmp4, <4 x float>* %P3
9         store <4 x float> zeroinitializer, <4 x float>* %P1
10         store <4 x int> zeroinitializer, <4 x int>* %P2
11         ret void
12 }
13