blob: 8cf36e05a8379d2daacbb341f3612375fdc0598c [file] [log] [blame]
Chris Lattnerce84ae42008-02-22 02:09:43 +00001; 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
7target triple = "x86_64-apple-darwin8"
8
9define i32 @foo(<1 x i64>* %x, <1 x i64>* %y) nounwind {
10entry:
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}