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 3 4 define void @load_store(<4 x i16>* %in) { 5 ; CHECK-LABEL: load_store: 6 ; CHECK: # %bb.0: # %entry 7 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax 8 ; CHECK-NEXT: pmovzxwd {{.*#+}} xmm0 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero 9 ; CHECK-NEXT: paddw %xmm0, %xmm0 10 ; CHECK-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,4,5,8,9,12,13,8,9,12,13,12,13,14,15] 11 ; CHECK-NEXT: movq %xmm0, (%eax) 12 ; CHECK-NEXT: retl 13 entry: 14 %A27 = load <4 x i16>, <4 x i16>* %in, align 4 15 %A28 = add <4 x i16> %A27, %A27 16 store <4 x i16> %A28, <4 x i16>* %in, align 4 17 ret void 18 } 19 20 ; Make sure that we store a 64bit value, even on 32bit systems. 21 define void @store_64(<2 x i32>* %ptr) { 22 ; CHECK-LABEL: store_64: 23 ; CHECK: # %bb.0: # %BB 24 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax 25 ; CHECK-NEXT: xorps %xmm0, %xmm0 26 ; CHECK-NEXT: movlps %xmm0, (%eax) 27 ; CHECK-NEXT: retl 28 BB: 29 store <2 x i32> zeroinitializer, <2 x i32>* %ptr 30 ret void 31 } 32 33 define <2 x i32> @load_64(<2 x i32>* %ptr) { 34 ; CHECK-LABEL: load_64: 35 ; CHECK: # %bb.0: # %BB 36 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax 37 ; CHECK-NEXT: pmovzxdq {{.*#+}} xmm0 = mem[0],zero,mem[1],zero 38 ; CHECK-NEXT: retl 39 BB: 40 %t = load <2 x i32>, <2 x i32>* %ptr 41 ret <2 x i32> %t 42 } 43