blob: e24b4821b9eac502f04cc9206bc7ff7c411c0519 [file] [log] [blame]
Dan Gohman8c89a502007-08-15 13:36:28 +00001; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | grep movq | count 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
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}