1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-pc-linux -mcpu=penryn | FileCheck %s
4 define void @foo(ptr %p, <16 x i1> %x) {
7 ; CHECK-NEXT: pmovzxbd {{.*#+}} xmm1 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
8 ; CHECK-NEXT: pshufd {{.*#+}} xmm2 = xmm0[3,3,3,3]
9 ; CHECK-NEXT: pmovzxbd {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero,xmm2[2],zero,zero,zero,xmm2[3],zero,zero,zero
10 ; CHECK-NEXT: pshufd {{.*#+}} xmm3 = xmm0[2,3,2,3]
11 ; CHECK-NEXT: pmovzxbd {{.*#+}} xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
12 ; CHECK-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,1,1,1]
13 ; CHECK-NEXT: pmovzxbd {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
14 ; CHECK-NEXT: pslld $31, %xmm0
15 ; CHECK-NEXT: psrad $31, %xmm0
16 ; CHECK-NEXT: pslld $31, %xmm3
17 ; CHECK-NEXT: psrad $31, %xmm3
18 ; CHECK-NEXT: pslld $31, %xmm2
19 ; CHECK-NEXT: psrad $31, %xmm2
20 ; CHECK-NEXT: pslld $31, %xmm1
21 ; CHECK-NEXT: psrad $31, %xmm1
22 ; CHECK-NEXT: movdqa %xmm1, (%rdi)
23 ; CHECK-NEXT: movdqa %xmm2, 48(%rdi)
24 ; CHECK-NEXT: movdqa %xmm3, 32(%rdi)
25 ; CHECK-NEXT: movdqa %xmm0, 16(%rdi)
27 %ret = sext <16 x i1> %x to <16 x i32>
28 store <16 x i32> %ret, ptr %p