Dan Gohman | 8c89a50 | 2007-08-15 13:36:28 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | grep movq | count 3 |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 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 | |
Evan Cheng | 18950d9 | 2008-05-07 22:59:08 +0000 | [diff] [blame^] | 19 | define <2 x i32> @qux(i32 %A) nounwind { |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 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 | } |