brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 5b6a0ab Raw
55 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 62; RUN: opt -passes=slp-vectorizer -S -slp-threshold=-99999 -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s3 4define void @test() {5; CHECK-LABEL: define void @test() {6; CHECK-NEXT:  [[BB:.*]]:7; CHECK-NEXT:    br i1 false, label %[[BB1:.*]], label %[[BB9:.*]]8; CHECK:       [[BB1]]:9; CHECK-NEXT:    [[SHL4:%.*]] = shl i32 0, 010; CHECK-NEXT:    [[TMP0:%.*]] = insertelement <4 x i32> <i32 0, i32 poison, i32 poison, i32 poison>, i32 [[SHL4]], i32 111; CHECK-NEXT:    [[TMP1:%.*]] = shufflevector <4 x i32> [[TMP0]], <4 x i32> <i32 0, i32 -1, i32 undef, i32 undef>, <4 x i32> <i32 0, i32 1, i32 4, i32 5>12; CHECK-NEXT:    [[TMP2:%.*]] = shufflevector <4 x i32> [[TMP1]], <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>, <4 x i32> <i32 4, i32 5, i32 3, i32 2>13; CHECK-NEXT:    [[TMP3:%.*]] = add <4 x i32> [[TMP1]], [[TMP2]]14; CHECK-NEXT:    [[TMP4:%.*]] = ashr <4 x i32> [[TMP1]], [[TMP2]]15; CHECK-NEXT:    [[TMP5:%.*]] = shufflevector <4 x i32> [[TMP3]], <4 x i32> [[TMP4]], <4 x i32> <i32 0, i32 5, i32 2, i32 3>16; CHECK-NEXT:    br label %[[BB6:.*]]17; CHECK:       [[BB6]]:18; CHECK-NEXT:    [[TMP6:%.*]] = phi <4 x i32> [ [[TMP5]], %[[BB1]] ]19; CHECK-NEXT:    br label %[[BB9]]20; CHECK:       [[BB9]]:21; CHECK-NEXT:    [[TMP7:%.*]] = phi <4 x i32> [ <i32 0, i32 0, i32 poison, i32 0>, %[[BB]] ], [ [[TMP6]], %[[BB6]] ]22; CHECK-NEXT:    [[TMP8:%.*]] = extractelement <4 x i32> [[TMP7]], i32 323; CHECK-NEXT:    [[OR:%.*]] = or i32 [[TMP8]], 024; CHECK-NEXT:    ret void25;26bb:27  br i1 false, label %bb1, label %bb928 29bb1:30  %add = add i32 0, 031  %shl = shl i32 %add, 032  %sub = sub i32 0, 133  %add2 = add i32 %sub, %shl34  %add3 = add i32 0, 035  %shl4 = shl i32 %add3, 036  %ashr = ashr i32 %shl4, 137  %add5 = add i32 0, 038  br label %bb639 40bb6:41  %phi = phi i32 [ %add2, %bb1 ]42  %phi7 = phi i32 [ %ashr, %bb1 ]43  %phi8 = phi i32 [ %add5, %bb1 ]44  br label %bb945 46bb9:47  %phi10 = phi i32 [ poison, %bb ], [ %phi, %bb6 ]48  %phi11 = phi i32 [ 0, %bb ], [ %phi7, %bb6 ]49  %phi12 = phi i32 [ 0, %bb ], [ %phi, %bb6 ]50  %phi13 = phi i32 [ 0, %bb ], [ %phi8, %bb6 ]51  %or = or i32 %phi12, 052  ret void53}54 55