Evan Cheng | 8156f65 | 2006-03-24 08:02:50 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep xorps |
2 | ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep pxor | ||||
3 | |||||
4 | void %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 | |||||
11 | void %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 | } |