Skip to content

Commit

Permalink
[InstCombine] Add #38139 test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Jun 11, 2024
1 parent 00262ab commit 264bcbe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions llvm/test/Transforms/InstCombine/icmp-of-or-x.ll
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,13 @@ define i1 @icmp_eq_x_invertable_y2(i8 %x, i8 %y) {
%r = icmp eq i8 %yy, %or
ret i1 %r
}

define i1 @PR38139(i8 %arg) {
; CHECK-LABEL: @PR38139(
; CHECK-NEXT: [[R:%.*]] = icmp ult i8 [[ARG:%.*]], -64
; CHECK-NEXT: ret i1 [[R]]
;
%masked = or i8 %arg, 192
%r = icmp ne i8 %masked, %arg
ret i1 %r
}

0 comments on commit 264bcbe

Please sign in to comment.