Fix a bug in the DAGCombiner's handling of multiple linked
[oota-llvm.git] / test / CodeGen / X86 / i64-mem-copy.ll
1 ; RUN: llvm-as < %s | llc -march=x86-64           | grep {movq.*(%rsi), %rax}
2 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep {movsd.*(%eax),}
3
4 ; Uses movsd to load / store i64 values if sse2 is available.
5
6 ; rdar://6659858
7
8 define void @foo(i64* %x, i64* %y) nounwind  {
9 entry:
10         %tmp1 = load i64* %y, align 8           ; <i64> [#uses=1]
11         store i64 %tmp1, i64* %x, align 8
12         ret void
13 }