1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -constraint-elimination -S %s | FileCheck %s
6 define void @test(i8* %m, i8* %ptr) {
9 ; CHECK-NEXT: [[CMP_1:%.*]] = icmp ult i8* [[M:%.*]], [[PTR:%.*]]
10 ; CHECK-NEXT: br i1 [[CMP_1]], label [[BB_1:%.*]], label [[BB_2:%.*]]
12 ; CHECK-NEXT: [[CMP_2:%.*]] = icmp uge i8* [[M]], [[PTR]]
13 ; CHECK-NEXT: call void @use(i1 false)
14 ; CHECK-NEXT: ret void
16 ; CHECK-NEXT: br label [[BB_2_NEXT:%.*]]
18 ; CHECK-NEXT: [[CMP_3:%.*]] = icmp uge i8* [[M]], [[PTR]]
19 ; CHECK-NEXT: call void @use(i1 true)
20 ; CHECK-NEXT: ret void
23 %cmp.1 = icmp ult i8* %m, %ptr
24 br i1 %cmp.1, label %bb.1, label %bb.2
27 %cmp.2 = icmp uge i8* %m, %ptr
28 call void @use(i1 %cmp.2)
35 %cmp.3 = icmp uge i8* %m, %ptr
36 call void @use(i1 %cmp.3)