1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
2 ; RUN: opt -passes=slp-vectorizer -S -slp-threshold=-99999 -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
5 ; CHECK-LABEL: define void @test() {
7 ; CHECK-NEXT: br label [[BB1:%.*]]
9 ; CHECK-NEXT: [[TMP0:%.*]] = phi <8 x i32> [ poison, [[BB10:%.*]] ], [ zeroinitializer, [[BB:%.*]] ]
10 ; CHECK-NEXT: [[TMP1:%.*]] = shufflevector <8 x i32> [[TMP0]], <8 x i32> poison, <2 x i32> <i32 7, i32 7>
11 ; CHECK-NEXT: switch i32 0, label [[BB16:%.*]] [
12 ; CHECK-NEXT: i32 0, label [[BB14:%.*]]
13 ; CHECK-NEXT: i32 1, label [[BB11:%.*]]
16 ; CHECK-NEXT: br label [[BB11]]
18 ; CHECK-NEXT: br label [[BB1]]
20 ; CHECK-NEXT: [[TMP2:%.*]] = phi <2 x i32> [ poison, [[BB9:%.*]] ], [ [[TMP1]], [[BB1]] ]
21 ; CHECK-NEXT: ret void
23 ; CHECK-NEXT: ret void
25 ; CHECK-NEXT: ret void
27 ; CHECK-NEXT: [[TMP3:%.*]] = phi <8 x i32> [ [[TMP0]], [[BB1]] ], [ poison, [[BB25:%.*]] ]
28 ; CHECK-NEXT: ret void
30 ; CHECK-NEXT: switch i32 0, label [[BB16]] [
31 ; CHECK-NEXT: i32 0, label [[BB14]]
32 ; CHECK-NEXT: i32 1, label [[BB15:%.*]]
39 %phi = phi i32 [ 0, %bb10 ], [ 0, %bb ]
40 %phi2 = phi i32 [ 0, %bb10 ], [ 0, %bb ]
41 %phi3 = phi i32 [ 0, %bb10 ], [ 0, %bb ]
42 %phi4 = phi i32 [ 0, %bb10 ], [ 0, %bb ]
43 %phi5 = phi i32 [ 0, %bb10 ], [ 0, %bb ]
44 %phi6 = phi i32 [ 0, %bb10 ], [ 0, %bb ]
45 %phi7 = phi i32 [ 0, %bb10 ], [ 0, %bb ]
46 %phi8 = phi i32 [ 0, %bb10 ], [ 0, %bb ]
47 switch i32 0, label %bb16 [
59 %phi12 = phi i32 [ 0, %bb9 ], [ %phi7, %bb1 ]
60 %phi13 = phi i32 [ 0, %bb9 ], [ undef, %bb1 ]
70 %phi17 = phi i32 [ %phi, %bb1 ], [ 0, %bb25 ]
71 %phi18 = phi i32 [ %phi2, %bb1 ], [ 0, %bb25 ]
72 %phi19 = phi i32 [ %phi3, %bb1 ], [ 0, %bb25 ]
73 %phi20 = phi i32 [ %phi4, %bb1 ], [ 0, %bb25 ]
74 %phi21 = phi i32 [ %phi5, %bb1 ], [ 0, %bb25 ]
75 %phi22 = phi i32 [ %phi6, %bb1 ], [ 0, %bb25 ]
76 %phi23 = phi i32 [ %phi7, %bb1 ], [ 0, %bb25 ]
77 %phi24 = phi i32 [ %phi8, %bb1 ], [ 0, %bb25 ]
81 switch i32 0, label %bb16 [