blob: 4cf0e0178a228d8a4d2f89bb61b1d0b8311ee95e [file] [log] [blame]
Evan Cheng6ba3e8b2007-06-19 00:06:08 +00001; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2
Anton Korobeynikovf5d2c3b2008-05-06 23:09:29 +00002; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -mtriple=i386-apple-darwin | not grep mov
Evan Cheng6ba3e8b2007-06-19 00:06:08 +00003
4define <4 x i32> @test() {
5 %tmp131 = call <2 x i64> @llvm.x86.sse2.psrl.dq( <2 x i64> < i64 -1, i64 -1 >, i32 96 ) ; <<2 x i64>> [#uses=1]
6 %tmp137 = bitcast <2 x i64> %tmp131 to <4 x i32> ; <<4 x i32>> [#uses=1]
7 %tmp138 = and <4 x i32> %tmp137, bitcast (<2 x i64> < i64 -1, i64 -1 > to <4 x i32>) ; <<4 x i32>> [#uses=1]
8 ret <4 x i32> %tmp138
9}
10
11declare <2 x i64> @llvm.x86.sse2.psrl.dq(<2 x i64>, i32)