Skip to content

Commit

Permalink
Update saturating-add-sub.ll
Browse files Browse the repository at this point in the history
  • Loading branch information
AZero13 authored Aug 1, 2024
1 parent 343e238 commit b2b53df
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions llvm/test/Transforms/InstCombine/saturating-add-sub.ll
Original file line number Diff line number Diff line change
Expand Up @@ -1457,16 +1457,6 @@ define i32 @uadd_sat_negative_one(i32 %x) {
ret i32 %cond
}

define i32 @uadd_sat_negative_one_poison(i32 %x) {
; CHECK-LABEL: @uadd_sat_negative_one_poison(
; CHECK-NEXT: ret i32 poison
;
%cmp = icmp eq i32 %x, poison
%add = add i32 %x, 1
%cond = select i1 %cmp, i32 -1, i32 %add
ret i32 %cond
}

define i32 @uadd_sat_negative_one_poison_cmp(i32 %x) {
; CHECK-LABEL: @uadd_sat_negative_one_poison_cmp(
; CHECK-NEXT: ret i32 -1
Expand Down

0 comments on commit b2b53df

Please sign in to comment.