Xamarin Public Jenkins (auto-signing) e19d552987 Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
2018-10-19 08:34:24 +00:00

14 lines
289 B
LLVM

; RUN: opt -instcombine -S < %s | FileCheck %s
@d = common global i32 0, align 4
define i1 @f(i8 zeroext %p) #1 {
; CHECK-NOT: ret i1 false
%1 = zext i8 %p to i32
%2 = load i32, i32* @d, align 4
%3 = or i32 %2, -2
%4 = add nsw i32 %3, %1
%5 = icmp ugt i32 %1, %4
ret i1 %5
}