1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-- -mcpu=yonah | FileCheck %s
4 ; Legalization example that requires splitting a large vector into smaller pieces.
6 define void @update(<8 x i32> %val, ptr %dst) nounwind {
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
10 ; CHECK-NEXT: psrad $2, %xmm0
11 ; CHECK-NEXT: psrad $4, %xmm1
12 ; CHECK-NEXT: movdqa %xmm1, 16(%eax)
13 ; CHECK-NEXT: movdqa %xmm0, (%eax)
16 %shl = shl <8 x i32> %val, < i32 2, i32 2, i32 2, i32 2, i32 4, i32 4, i32 4, i32 4 >
17 %shr = ashr <8 x i32> %val, < i32 2, i32 2, i32 2, i32 2, i32 4, i32 4, i32 4, i32 4 >
18 store <8 x i32> %shr, ptr %dst