1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
2 ; RUN: opt --passes=slp-vectorizer -slp-threshold=-25 -mtriple=x86_64-unknown-linux-gnu -S < %s | FileCheck %s
4 define ptr @test(i8 %0) {
5 ; CHECK-LABEL: define ptr @test(
6 ; CHECK-SAME: i8 [[TMP0:%.*]]) {
8 ; CHECK-NEXT: [[CONV12_I:%.*]] = zext i8 [[TMP0]] to i32
9 ; CHECK-NEXT: [[TMP1:%.*]] = insertelement <2 x i32> <i32 0, i32 poison>, i32 [[CONV12_I]], i32 1
10 ; CHECK-NEXT: [[TMP2:%.*]] = lshr <2 x i32> [[TMP1]], zeroinitializer
11 ; CHECK-NEXT: [[TMP3:%.*]] = trunc <2 x i32> [[TMP2]] to <2 x i8>
12 ; CHECK-NEXT: [[TMP4:%.*]] = extractelement <2 x i8> [[TMP3]], i32 0
13 ; CHECK-NEXT: [[TMP5:%.*]] = zext i8 [[TMP4]] to i64
14 ; CHECK-NEXT: [[ARRAYIDX50_I:%.*]] = getelementptr i8, ptr null, i64 [[TMP5]]
15 ; CHECK-NEXT: [[TMP6:%.*]] = extractelement <2 x i8> [[TMP3]], i32 1
16 ; CHECK-NEXT: [[TMP7:%.*]] = zext i8 [[TMP6]] to i64
17 ; CHECK-NEXT: [[ARRAYIDX16_I:%.*]] = getelementptr i8, ptr null, i64 [[TMP7]]
18 ; CHECK-NEXT: ret ptr null
21 %shr48.i = lshr i32 0, 0
22 %idxprom49.i = zext nneg i32 %shr48.i to i64
23 %arrayidx50.i = getelementptr i8, ptr null, i64 %idxprom49.i
24 %conv12.i = zext i8 %0 to i32
25 %shr14.i = lshr i32 %conv12.i, 0
26 %idxprom15.i = zext nneg i32 %shr14.i to i64
27 %arrayidx16.i = getelementptr i8, ptr null, i64 %idxprom15.i