blob: 2047ce75e5705e5701f80556b81b61a78236f10e [file] [log] [blame]
Evan Chengc944c5d2009-03-12 05:59:15 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep {movq.*(%rsi), %rax}
2; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse2 | grep {movl.*4(%eax),}
3; RUN: llvm-as < %s | llc -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}