Fix live variables issues:
[oota-llvm.git] / test / CodeGen / X86 / mmx-insert-element.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | grep movq | count 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
19 define <2 x i32> @qux(i32 %A) {
20 entry:
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 }