1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
3;
4; Check that a widening truncate to a vector of i1 elements can be handled.
5
6define void @pr32275(<4 x i8> %B15) {
7; CHECK-LABEL: pr32275:
8; CHECK:       # %bb.0: # %BB
9; CHECK-NEXT:    vlgvb %r0, %v24, 3
10; CHECK-NEXT:    vlvgp %v0, %r0, %r0
11; CHECK-NEXT:    vrepif %v1, 1
12; CHECK-NEXT:    vn %v0, %v0, %v1
13; CHECK-NEXT:    vlgvf %r0, %v0, 3
14; CHECK-NEXT:  .LBB0_1: # %CF34
15; CHECK-NEXT:    # =>This Inner Loop Header: Depth=1
16; CHECK-NEXT:    cijlh %r0, 0, .LBB0_1
17; CHECK-NEXT:  # %bb.2: # %CF36
18; CHECK-NEXT:    br %r14
19BB:
20  br label %CF34
21
22CF34:
23  %Tr24 = trunc <4 x i8> %B15 to <4 x i1>
24  %E28 = extractelement <4 x i1> %Tr24, i32 3
25  br i1 %E28, label %CF34, label %CF36
26
27CF36:
28  ret void
29}
30