1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -O0 -mattr=avx | FileCheck %s
6 ; CHECK: # %bb.0: # %BB
7 ; CHECK-NEXT: movb -{{[0-9]+}}(%rsp), %al
8 ; CHECK-NEXT: vxorps %xmm0, %xmm0, %xmm0
9 ; CHECK-NEXT: vmovaps %xmm0, {{[-0-9]+}}(%r{{[sb]}}p) # 16-byte Spill
10 ; CHECK-NEXT: # %bb.1: # %BB0
11 ; CHECK-NEXT: vmovaps {{[-0-9]+}}(%r{{[sb]}}p), %xmm0 # 16-byte Reload
12 ; CHECK-NEXT: vpslld $31, %xmm0, %xmm0
13 ; CHECK-NEXT: vpsrad $31, %xmm0, %xmm1
14 ; CHECK-NEXT: vpmovsxdq %xmm1, %xmm2
15 ; CHECK-NEXT: # implicit-def: $ymm0
16 ; CHECK-NEXT: vmovaps %xmm2, %xmm0
17 ; CHECK-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[2,2,3,3]
18 ; CHECK-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
19 ; CHECK-NEXT: # %bb.2: # %BB1
20 ; CHECK-NEXT: vzeroupper
23 %A1 = alloca i1, align 1
24 %L1 = load i1, ptr %A1, align 1
25 %Cmp = icmp ugt <4 x i64> zeroinitializer, zeroinitializer
29 %Se = sext <4 x i1> %Cmp to <4 x i64>
33 %Sl = select i1 %L1, <4 x i64> %Se, <4 x i64> zeroinitializer