blob: d318964686c9be47397d6bfbee592879e4f15afa [file] [log] [blame]
Dale Johannesen215a5642008-03-10 17:33:57 +00001; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep movaps
2; RUN: llvm-as < %s | llc -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