1 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=sse2 | FileCheck %s --check-prefix=X64
2 ; RUN: llc < %s -mtriple=i386-unknown-unknown -mattr=sse2 | FileCheck %s --check-prefix=X32
4 ; Use movq or movsd to load / store i64 values if sse2 is available.
7 define void @foo(i64* %x, i64* %y) {
10 ; X64-NEXT: movq (%rsi), %rax
11 ; X64-NEXT: movq %rax, (%rdi)
16 ; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
17 ; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
18 ; X32-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
19 ; X32-NEXT: movsd %xmm0, (%eax)
22 %tmp1 = load i64, i64* %y, align 8
23 store i64 %tmp1, i64* %x, align 8