1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=slp-vectorizer -S -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
7 ; CHECK-NEXT: br label [[FOR_BODY:%.*]]
9 ; CHECK-NEXT: [[TMP0:%.*]] = phi <2 x i1> [ [[TMP6:%.*]], [[TMP1:%.*]] ], [ zeroinitializer, [[ENTRY:%.*]] ]
10 ; CHECK-NEXT: br label [[TMP1]]
12 ; CHECK-NEXT: [[TMP2:%.*]] = zext <2 x i1> [[TMP0]] to <2 x i8>
13 ; CHECK-NEXT: [[TMP3:%.*]] = and <2 x i8> zeroinitializer, [[TMP2]]
14 ; CHECK-NEXT: [[TMP4:%.*]] = or <2 x i8> [[TMP3]], zeroinitializer
15 ; CHECK-NEXT: [[TMP5:%.*]] = icmp ne <2 x i8> [[TMP4]], zeroinitializer
16 ; CHECK-NEXT: [[TMP6]] = and <2 x i1> [[TMP5]], zeroinitializer
17 ; CHECK-NEXT: br label [[FOR_BODY]]
23 %phi1 = phi i1 [ %icmp2, %0 ], [ false, %entry ]
24 %phi2 = phi i1 [ %icmp1, %0 ], [ false, %entry ]
28 %z1 = zext i1 %phi2 to i8
33 %icmp1 = and i1 %4, false
35 %z2 = zext i1 %phi1 to i8
40 %icmp2 = and i1 %9, false