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