Dan Gohman | 0a06310 | 2009-09-08 23:54:48 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=x86-64 | grep {movq.*(%rsi), %rax} |
| 2 | ; RUN: llc < %s -march=x86 -mattr=-sse2 | grep {movl.*4(%eax),} |
| 3 | ; RUN: llc < %s -march=x86 -mattr=+sse2 | grep {movsd.(%eax),} |
Chris Lattner | ce84ae4 | 2008-02-22 02:09:43 +0000 | [diff] [blame] | 4 | |
| 5 | ; This test should use GPRs to copy the mmx value, not MMX regs. Using mmx regs, |
| 6 | ; increases the places that need to use emms. |
| 7 | |
| 8 | ; rdar://5741668 |
Chris Lattner | ce84ae4 | 2008-02-22 02:09:43 +0000 | [diff] [blame] | 9 | |
Chris Lattner | c6ad293 | 2008-02-22 05:18:04 +0000 | [diff] [blame] | 10 | define void @foo(<1 x i64>* %x, <1 x i64>* %y) nounwind { |
Chris Lattner | ce84ae4 | 2008-02-22 02:09:43 +0000 | [diff] [blame] | 11 | entry: |
| 12 | %tmp1 = load <1 x i64>* %y, align 8 ; <<1 x i64>> [#uses=1] |
| 13 | store <1 x i64> %tmp1, <1 x i64>* %x, align 8 |
Chris Lattner | c6ad293 | 2008-02-22 05:18:04 +0000 | [diff] [blame] | 14 | ret void |
Chris Lattner | ce84ae4 | 2008-02-22 02:09:43 +0000 | [diff] [blame] | 15 | } |