26 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: opt -S -passes=instcombine -instcombine-verify-known-bits < %s | FileCheck %s3 4define i16 @pr110631(i32 range(i32 0, 256) %arg, i64 %arg1) {5; CHECK-LABEL: define i16 @pr110631(6; CHECK-SAME: i32 range(i32 0, 256) [[ARG:%.*]], i64 [[ARG1:%.*]]) {7; CHECK-NEXT: [[BB:.*:]]8; CHECK-NEXT: [[I:%.*]] = xor i32 [[ARG]], 489919; CHECK-NEXT: [[TMP0:%.*]] = trunc i64 [[ARG1]] to i3210; CHECK-NEXT: [[I4:%.*]] = and i32 [[I]], [[TMP0]]11; CHECK-NEXT: [[TMP1:%.*]] = trunc nuw i32 [[I4]] to i1612; CHECK-NEXT: [[I8:%.*]] = xor i16 [[TMP1]], 113; CHECK-NEXT: ret i16 [[I8]]14;15bb:16 %i = xor i32 %arg, 4899117 %i2 = zext i32 %i to i6418 %i3 = and i64 %arg1, %i219 %i4 = trunc i64 %i3 to i3220 %i5 = trunc i32 %i4 to i1621 %i6 = sext i16 %i5 to i3222 %i7 = xor i32 %i6, 123 %i8 = trunc i32 %i7 to i1624 ret i16 %i825}26