blob: da17a04a466c41d477772148fc872d0410b34636 [file] [log] [blame]
Chris Lattnerce84ae42008-02-22 02:09:43 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep {movq.*(%rsi), %rax}
Chris Lattnerc6ad2932008-02-22 05:18:04 +00002; RUN: llvm-as < %s | llc -march=x86 | grep {movl.*4(%eax),}
Chris Lattnerce84ae42008-02-22 02:09:43 +00003
4; This test should use GPRs to copy the mmx value, not MMX regs. Using mmx regs,
5; increases the places that need to use emms.
6
7; rdar://5741668
8target triple = "x86_64-apple-darwin8"
9
Chris Lattnerc6ad2932008-02-22 05:18:04 +000010define void @foo(<1 x i64>* %x, <1 x i64>* %y) nounwind {
Chris Lattnerce84ae42008-02-22 02:09:43 +000011entry:
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 Lattnerc6ad2932008-02-22 05:18:04 +000014 ret void
Chris Lattnerce84ae42008-02-22 02:09:43 +000015}