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
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: movq {{.*#+}} xmm0 = mem[0],zero
9 ; CHECK-NEXT: paddw %xmm0, %xmm0
10 ; CHECK-NEXT: movq %xmm0, (%eax)
13 %A27 = load <4 x i16>, <4 x i16>* %in, align 4
14 %A28 = add <4 x i16> %A27, %A27
15 store <4 x i16> %A28, <4 x i16>* %in, align 4
19 ; Make sure that we store a 64bit value, even on 32bit systems.
20 define void @store_64(<2 x i32>* %ptr) {
21 ; CHECK-LABEL: store_64:
22 ; CHECK: # %bb.0: # %BB
23 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
24 ; CHECK-NEXT: xorps %xmm0, %xmm0
25 ; CHECK-NEXT: movlps %xmm0, (%eax)
28 store <2 x i32> zeroinitializer, <2 x i32>* %ptr
32 define <2 x i32> @load_64(<2 x i32>* %ptr) {
33 ; CHECK-LABEL: load_64:
34 ; CHECK: # %bb.0: # %BB
35 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
36 ; CHECK-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
39 %t = load <2 x i32>, <2 x i32>* %ptr