blob: dc488363e7f52e28bea86d12f9076d9b599747f6 [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
Evan Cheng18950d92008-05-07 22:59:08 +000019define <2 x i32> @qux(i32 %A) nounwind {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020entry:
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}