blob: a53116c92d1b102e62b15464e813985f8d19830d [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
11define <2 x i64> @test3(i64 %arg) {
12entry:
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
18define <2 x i64> @test2(i64 %arg) {
19entry:
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