blob: 0f94174b34a11cbc16115e3f7083fbfb626316df [file] [log] [blame]
Dan Gohman8c89a502007-08-15 13:36:28 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep xorps | count 2
Dan Gohmanf17a25c2007-07-18 16:29:46 +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}