blob: 345697476a04019b3e6ad38a926f1e0da92e15b7 [file] [log] [blame]
Chris Lattner88d3c242006-04-12 16:57:39 +00001; 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.
Chris Lattner8e7401e2006-04-12 16:49:16 +00003
Chris Lattner88d3c242006-04-12 16:57:39 +00004void %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
Chris Lattner8e7401e2006-04-12 16:49:16 +00009 store <4 x float> zeroinitializer, <4 x float>* %P1
10 store <4 x int> zeroinitializer, <4 x int>* %P2
11 ret void
12}
13