Chris Lattner | ce84ae4 | 2008-02-22 02:09:43 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86-64 | grep {movq.*(%rsi), %rax} |
| 2 | |
| 3 | ; This test should use GPRs to copy the mmx value, not MMX regs. Using mmx regs, |
| 4 | ; increases the places that need to use emms. |
| 5 | |
| 6 | ; rdar://5741668 |
| 7 | target triple = "x86_64-apple-darwin8" |
| 8 | |
| 9 | define i32 @foo(<1 x i64>* %x, <1 x i64>* %y) nounwind { |
| 10 | entry: |
| 11 | %tmp1 = load <1 x i64>* %y, align 8 ; <<1 x i64>> [#uses=1] |
| 12 | store <1 x i64> %tmp1, <1 x i64>* %x, align 8 |
| 13 | ret i32 undef |
| 14 | } |