blob: ae5af586cdc339ef9f72ef9c03b680f7da59f2e3 [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mattr=+sse2 | grep xorps | count 2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner632e88a2008-02-21 07:42:26 +00003define void @foo(<4 x float>* %P) {
4 %T = load <4 x float>* %P ; <<4 x float>> [#uses=1]
Dan Gohman7ce405e2009-06-04 22:49:04 +00005 %S = fadd <4 x float> zeroinitializer, %T ; <<4 x float>> [#uses=1]
Tanya Lattner632e88a2008-02-21 07:42:26 +00006 store <4 x float> %S, <4 x float>* %P
7 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008}
9
Tanya Lattner632e88a2008-02-21 07:42:26 +000010define void @bar(<4 x i32>* %P) {
11 %T = load <4 x i32>* %P ; <<4 x i32>> [#uses=1]
12 %S = add <4 x i32> zeroinitializer, %T ; <<4 x i32>> [#uses=1]
13 store <4 x i32> %S, <4 x i32>* %P
14 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015}
Tanya Lattner632e88a2008-02-21 07:42:26 +000016