49 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 42; RUN: opt -S --passes=slp-vectorizer -mtriple=systemz-unknown -mcpu=z13 < %s | FileCheck %s3 4define void @test(i64 %0, i1 %.cmp.i.2, i1 %1, ptr %a) {5; CHECK-LABEL: define void @test(6; CHECK-SAME: i64 [[TMP0:%.*]], i1 [[DOTCMP_I_2:%.*]], i1 [[TMP1:%.*]], ptr [[A:%.*]]) #[[ATTR0:[0-9]+]] {7; CHECK-NEXT: [[TMP3:%.*]] = insertelement <4 x i64> poison, i64 [[TMP0]], i32 08; CHECK-NEXT: [[TMP4:%.*]] = shufflevector <4 x i64> [[TMP3]], <4 x i64> poison, <4 x i32> zeroinitializer9; CHECK-NEXT: [[TMP5:%.*]] = lshr <4 x i64> [[TMP4]], splat (i64 63)10; CHECK-NEXT: [[TMP6:%.*]] = insertelement <4 x i1> poison, i1 [[DOTCMP_I_2]], i32 011; CHECK-NEXT: [[TMP7:%.*]] = insertelement <4 x i1> [[TMP6]], i1 [[TMP1]], i32 112; CHECK-NEXT: [[TMP8:%.*]] = shufflevector <4 x i1> [[TMP7]], <4 x i1> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 0>13; CHECK-NEXT: [[TMP9:%.*]] = shufflevector <4 x i1> [[TMP7]], <4 x i1> poison, <4 x i32> <i32 1, i32 1, i32 0, i32 1>14; CHECK-NEXT: [[TMP10:%.*]] = trunc <4 x i64> [[TMP5]] to <4 x i1>15; CHECK-NEXT: [[TMP11:%.*]] = select <4 x i1> [[TMP9]], <4 x i1> [[TMP10]], <4 x i1> [[TMP8]]16; CHECK-NEXT: [[TMP12:%.*]] = zext <4 x i1> [[TMP11]] to <4 x i32>17; CHECK-NEXT: [[TMP13:%.*]] = xor <4 x i32> [[TMP12]], splat (i32 1)18; CHECK-NEXT: [[TMP14:%.*]] = call i32 @llvm.vector.reduce.or.v4i32(<4 x i32> [[TMP13]])19; CHECK-NEXT: store i32 [[TMP14]], ptr [[A]], align 420; CHECK-NEXT: ret void21;22 %.lobit.i.2 = lshr i64 %0, 6323 %3 = zext i1 %.cmp.i.2 to i6424 %4 = select i1 %1, i64 %.lobit.i.2, i64 %325 %5 = trunc i64 %4 to i3226 %6 = xor i32 %5, 127 %.lobit.i.3 = lshr i64 %0, 6328 %7 = zext i1 %.cmp.i.2 to i6429 %8 = select i1 %1, i64 %.lobit.i.3, i64 %730 %9 = trunc i64 %8 to i3231 %10 = xor i32 %9, 132 %11 = or i32 %10, %633 %.lobit.i.4 = lshr i64 %0, 6334 %12 = zext i1 %1 to i6435 %13 = select i1 %.cmp.i.2, i64 %.lobit.i.4, i64 %1236 %14 = trunc i64 %13 to i3237 %15 = xor i32 %14, 138 %16 = or i32 %15, %1139 %.lobit.i.5 = lshr i64 %0, 6340 %17 = zext i1 %.cmp.i.2 to i6441 %18 = select i1 %1, i64 %.lobit.i.5, i64 %1742 %19 = trunc i64 %18 to i3243 %20 = xor i32 %19, 144 %21 = or i32 %20, %1645 store i32 %21, ptr %a, align 446 ret void47}48 49