1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
2 ; RUN: opt -S --passes=slp-vectorizer -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
5 ; CHECK-LABEL: define void @foo() {
7 ; CHECK-NEXT: br label [[BB1:%.*]]
9 ; CHECK-NEXT: switch i32 0, label [[BB3:%.*]] [
10 ; CHECK-NEXT: i32 0, label [[BB2:%.*]]
11 ; CHECK-NEXT: i32 4, label [[BB4:%.*]]
12 ; CHECK-NEXT: i32 1, label [[BB4]]
15 ; CHECK-NEXT: br label [[BB4]]
17 ; CHECK-NEXT: br label [[BB4]]
19 ; CHECK-NEXT: [[TMP0:%.*]] = phi <2 x i32> [ zeroinitializer, [[BB3]] ], [ zeroinitializer, [[BB2]] ], [ zeroinitializer, [[BB1]] ], [ zeroinitializer, [[BB1]] ]
20 ; CHECK-NEXT: br label [[BB1]]
31 switch i32 0, label %bb3 [
44 %p1 = phi i32 [ %add1, %bb3 ], [ %add4, %bb2 ], [ %add2, %bb1 ], [ %add2, %bb1 ]
45 %p2 = phi i32 [ %add2, %bb3 ], [ %add5, %bb2 ], [ %add3, %bb1 ], [ %add3, %bb1 ]