blob: 3f2e4020d7caa7440597d29534cab19fc894642a [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | grep movq | wc -l | grep 3
2
3; FIXME: This code outputs:
4;
5; subl $28, %esp
6; movl 32(%esp), %eax
7; movd %eax, %mm0
8; movq %mm0, (%esp)
9; movl (%esp), %eax
10; movl %eax, 20(%esp)
11; movq %mm0, 8(%esp)
12; movl 12(%esp), %eax
13; movl %eax, 16(%esp)
14; movq 16(%esp), %mm0
15; addl $28, %esp
16;
17; Which is ugly. We need to fix this.
18
19define <2 x i32> @qux(i32 %A) {
20entry:
21 %tmp3 = insertelement <2 x i32> < i32 0, i32 undef >, i32 %A, i32 1 ; <<2 x i32>> [#uses=1]
22 ret <2 x i32> %tmp3
23}