blob: d9071575e64384f87a6c394119cdd36d4c2336e4 [file] [log] [blame]
Evan Chengd8122c32006-07-05 20:46:27 +00001; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep xorps | wc -l | grep 2
Evan Cheng8156f652006-03-24 08:02:50 +00002
3void %foo(<4 x float> *%P) {
4 %T = load <4 x float> * %P
5 %S = add <4 x float> zeroinitializer, %T
6 store <4 x float> %S, <4 x float>* %P
7 ret void
8}
9
10void %bar(<4 x int> *%P) {
11 %T = load <4 x int> * %P
12 %S = add <4 x int> zeroinitializer, %T
13 store <4 x int> %S, <4 x int>* %P
14 ret void
15}