1 ; RUN: opt < %s -instcombine -S | FileCheck %s
3 define zeroext i1 @_Z3fooPb(i8* nocapture %x) {
5 %a = load i8, i8* %x, align 1, !range !0
7 %tobool = icmp ne i8 %b, 0
11 ; CHECK: %a = load i8, i8* %x, align 1, !range !0
12 ; CHECK-NEXT: %tobool = icmp ne i8 %a, 0
13 ; CHECK-NEXT: ret i1 %tobool