blob: f5b3e8baa33a90dec0623e7583a4ff5d17b2a837 [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mattr=+sse2 | not grep movaps
2; RUN: llc < %s -march=x86 -mattr=+sse2 | grep esp | count 2
Chris Lattner66a4dda2008-03-09 05:42:06 +00003
4; These should both generate something like this:
5;_test3:
6; movl $1234567, %eax
7; andl 4(%esp), %eax
8; movd %eax, %xmm0
9; ret
10
Evan Cheng18950d92008-05-07 22:59:08 +000011define <2 x i64> @test3(i64 %arg) nounwind {
Chris Lattner66a4dda2008-03-09 05:42:06 +000012entry:
13 %A = and i64 %arg, 1234567
14 %B = insertelement <2 x i64> zeroinitializer, i64 %A, i32 0
15 ret <2 x i64> %B
16}
17
Evan Cheng18950d92008-05-07 22:59:08 +000018define <2 x i64> @test2(i64 %arg) nounwind {
Chris Lattner66a4dda2008-03-09 05:42:06 +000019entry:
20 %A = and i64 %arg, 1234567
21 %B = insertelement <2 x i64> undef, i64 %A, i32 0
22 ret <2 x i64> %B
23}
24