Merging r261039:
[oota-llvm.git] / test / CodeGen / X86 / mmx-copy-gprs.ll
1 ; RUN: llc < %s -mtriple=x86_64-linux   | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-win32   | FileCheck %s
3 ; RUN: llc < %s -march=x86 -mattr=-sse2 | FileCheck %s
4 ; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
5
6 ; This test should use GPRs to copy the mmx value, not MMX regs.  Using mmx regs,
7 ; increases the places that need to use emms.
8 ; CHECK-NOT: %mm
9 ; CHECK-NOT: emms
10 ; rdar://5741668
11
12 define void @foo(<1 x i64>* %x, <1 x i64>* %y) nounwind  {
13 entry:
14         %tmp1 = load <1 x i64>, <1 x i64>* %y, align 8          ; <<1 x i64>> [#uses=1]
15         store <1 x i64> %tmp1, <1 x i64>* %x, align 8
16         ret void
17 }