blob: 166d4363ec8d54534e203810a3c6495ad30ed0e0 [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mattr=+sse2 -mtriple=i386-apple-darwin -o %t
Nate Begeman543d2142009-04-27 18:41:29 +00002; RUN: not grep and %t
3; RUN: not grep psrldq %t
4; RUN: grep xorps %t
Tanya Lattner632e88a2008-02-21 07:42:26 +00005
Evan Chengdea99362008-05-29 08:22:04 +00006define <4 x float> @test(<4 x float>* %v1) nounwind {
Tanya Lattner632e88a2008-02-21 07:42:26 +00007 %tmp = load <4 x float>* %v1 ; <<4 x float>> [#uses=1]
8 %tmp15 = bitcast <4 x float> %tmp to <2 x i64> ; <<2 x i64>> [#uses=1]
9 %tmp24 = and <2 x i64> %tmp15, bitcast (<4 x i32> < i32 0, i32 0, i32 -1, i32 -1 > to <2 x i64>) ; <<2 x i64>> [#uses=1]
10 %tmp31 = bitcast <2 x i64> %tmp24 to <4 x float> ; <<4 x float>> [#uses=1]
11 ret <4 x float> %tmp31
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012}
Tanya Lattner632e88a2008-02-21 07:42:26 +000013