1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
2 ; RUN: opt -S --passes=slp-vectorizer < %s | FileCheck %s
4 define i32 @test(i4 %0) {
5 ; CHECK-LABEL: define i32 @test(
6 ; CHECK-SAME: i4 [[TMP0:%.*]]) {
8 ; CHECK-NEXT: [[TMP1:%.*]] = trunc i8 0 to i4
9 ; CHECK-NEXT: [[TMP2:%.*]] = trunc i8 0 to i4
10 ; CHECK-NEXT: [[ADD_R:%.*]] = or i4 [[TMP1]], [[TMP0]]
11 ; CHECK-NEXT: [[ADD_R14:%.*]] = or i4 0, [[TMP2]]
12 ; CHECK-NEXT: [[CMP_NOT:%.*]] = icmp eq i4 [[ADD_R]], [[ADD_R14]]
13 ; CHECK-NEXT: ret i32 0
19 %add.r14 = or i4 0, %2
20 %cmp.not = icmp eq i4 %add.r, %add.r14