blob: 3607043e94fcc5f0016022edd0ffcce085a3bf54 [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; 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 Lattnerce84ae42008-02-22 02:09:43 +00004
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 Lattnerce84ae42008-02-22 02:09:43 +00009
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}