1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-pc-win32 -mcpu=corei7 | FileCheck %s --check-prefix=X86
3 ; RUN: llc < %s -mtriple=x86_64-pc-win32 -mcpu=corei7 | FileCheck %s --check-prefix=X64
5 define void @load_store(ptr %in) {
6 ; X86-LABEL: load_store:
7 ; X86: # %bb.0: # %entry
8 ; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
9 ; X86-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
10 ; X86-NEXT: paddw %xmm0, %xmm0
11 ; X86-NEXT: movq %xmm0, (%eax)
14 ; X64-LABEL: load_store:
15 ; X64: # %bb.0: # %entry
16 ; X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
17 ; X64-NEXT: paddw %xmm0, %xmm0
18 ; X64-NEXT: movq %xmm0, (%rcx)
21 %A27 = load <4 x i16>, ptr %in, align 4
22 %A28 = add <4 x i16> %A27, %A27
23 store <4 x i16> %A28, ptr %in, align 4
27 ; Make sure that we store a 64bit value, even on 32bit systems.
28 define void @store_64(ptr %ptr) {
29 ; X86-LABEL: store_64:
31 ; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
32 ; X86-NEXT: xorps %xmm0, %xmm0
33 ; X86-NEXT: movlps %xmm0, (%eax)
36 ; X64-LABEL: store_64:
38 ; X64-NEXT: movq $0, (%rcx)
41 store <2 x i32> zeroinitializer, ptr %ptr
45 define <2 x i32> @load_64(ptr %ptr) {
48 ; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
49 ; X86-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
54 ; X64-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
57 %t = load <2 x i32>, ptr %ptr