Skip to content

Commit

Permalink
Update the test with regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Poseydon42 committed Aug 14, 2024
1 parent 4f99cd2 commit 4986843
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions llvm/test/Transforms/PhaseOrdering/partialord-ule.ll
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
define i1 @ule(i32 %a, i32 %b) {
; CHECK-LABEL: @ule(
; CHECK-NEXT: start:
; CHECK-NEXT: [[CMP1:%.*]] = icmp eq i32 [[A:%.*]], [[B:%.*]]
; CHECK-NEXT: [[SEL1:%.*]] = tail call i64 @llvm.ucmp.i64.i32(i32 [[A]], i32 [[B]])
; CHECK-NEXT: [[TMP0:%.*]] = add nsw i64 [[SEL1]], 1
; CHECK-NEXT: [[SWITCH_SELECTCMP1:%.*]] = icmp ult i64 [[TMP0]], 2
; CHECK-NEXT: [[SWITCH_SELECTCMP:%.*]] = select i1 [[CMP1]], i1 true, i1 [[SWITCH_SELECTCMP1]]
; CHECK-NEXT: ret i1 [[SWITCH_SELECTCMP]]
; CHECK-NEXT: [[SWITCH_SELECTCMP1:%.*]] = icmp ule i32 [[A:%.*]], [[B:%.*]]
; CHECK-NEXT: ret i1 [[SWITCH_SELECTCMP1]]
;
start:
%cmp1 = icmp eq i32 %a, %b
Expand Down

0 comments on commit 4986843

Please sign in to comment.