1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
4 define i32 @foo(i32 %x, i32 %y) {
6 ; CHECK-NEXT: [[TMP1:%.*]] = call i32 @llvm.umax.i32(i32 [[X:%.*]], i32 [[Y:%.*]])
7 ; CHECK-NEXT: [[TMP2:%.*]] = xor i32 [[TMP1]], -1
8 ; CHECK-NEXT: ret i32 [[TMP2]]
13 %3 = icmp ugt i32 %1, %2
14 %4 = select i1 %3, i32 %2, i32 %1, !prof !1
18 !1 = !{!"branch_weights", i32 1, i32 6}