1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=slp-vectorizer -S -slp-threshold=-100 -mtriple=x86_64 < %s | FileCheck %s
7 ; CHECK-NEXT: br i1 false, label [[THEN:%.*]], label [[ELSE:%.*]]
9 ; CHECK-NEXT: br label [[ELSE]]
11 ; CHECK-NEXT: [[TMP0:%.*]] = phi <2 x i32> [ zeroinitializer, [[THEN]] ], [ zeroinitializer, [[ENTRY:%.*]] ]
12 ; CHECK-NEXT: [[TMP1:%.*]] = extractelement <2 x i32> [[TMP0]], i32 0
13 ; CHECK-NEXT: [[BF_CAST162:%.*]] = and i32 [[TMP1]], 0
14 ; CHECK-NEXT: [[TMP2:%.*]] = shufflevector <2 x i32> zeroinitializer, <2 x i32> [[TMP0]], <2 x i32> <i32 3, i32 1>
15 ; CHECK-NEXT: [[T13:%.*]] = and <2 x i32> [[TMP2]], zeroinitializer
16 ; CHECK-NEXT: br label [[ELSE1:%.*]]
18 ; CHECK-NEXT: [[TMP3:%.*]] = shufflevector <2 x i32> [[T13]], <2 x i32> poison, <2 x i32> <i32 poison, i32 0>
19 ; CHECK-NEXT: [[TMP4:%.*]] = insertelement <2 x i32> [[TMP3]], i32 [[BF_CAST162]], i32 0
20 ; CHECK-NEXT: [[TMP5:%.*]] = icmp ugt <2 x i32> [[TMP4]], zeroinitializer
21 ; CHECK-NEXT: [[TMP6:%.*]] = extractelement <2 x i1> [[TMP5]], i32 1
22 ; CHECK-NEXT: ret i1 [[TMP6]]
25 br i1 false, label %then, label %else
31 %bf.load.off43 = phi i32 [ 0, %then ], [ 0, %entry ]
32 %bf.load.off44 = phi i32 [ 0, %then ], [ 0, %entry ]
33 %bf.cast162 = and i32 %bf.load.off43, 0
34 %t12 = insertelement <2 x i32> zeroinitializer, i32 %bf.load.off44, i64 0
35 %t13 = and <2 x i32> %t12, zeroinitializer
39 %cmp40 = icmp ugt i32 %bf.cast162, 0
40 %t20 = extractelement <2 x i32> %t13, i64 0
41 %cmp50 = icmp ugt i32 %t20, 0