blob: 166d4363ec8d54534e203810a3c6495ad30ed0e0 [file] [log] [blame]
Dan Gohman40503392009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mattr=+sse2 -mtriple=i386-apple-darwin -o %t
Nate Begeman8d6d4b92009-04-27 18:41:29 +00002; RUN: not grep and %t
3; RUN: not grep psrldq %t
4; RUN: grep xorps %t
Tanya Lattner3cdf5422008-02-21 07:42:26 +00005
Evan Cheng5e28227d2008-05-29 08:22:04 +00006define <4 x float> @test(<4 x float>* %v1) nounwind {
Tanya Lattner3cdf5422008-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
Evan Cheng2bd632a2006-04-20 08:51:03 +000012}
Tanya Lattner3cdf5422008-02-21 07:42:26 +000013