[llvm] r371401 - [NFC][InstCombine] Fixup test i added in rL371352.
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 9 07:27:39 PDT 2019
Author: lebedevri
Date: Mon Sep 9 07:27:39 2019
New Revision: 371401
URL: http://llvm.org/viewvc/llvm-project?rev=371401&view=rev
Log:
[NFC][InstCombine] Fixup test i added in rL371352.
Modified:
llvm/trunk/test/Transforms/InstCombine/result-of-usub-is-non-zero-and-no-overflow.ll
Modified: llvm/trunk/test/Transforms/InstCombine/result-of-usub-is-non-zero-and-no-overflow.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/result-of-usub-is-non-zero-and-no-overflow.ll?rev=371401&r1=371400&r2=371401&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/result-of-usub-is-non-zero-and-no-overflow.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/result-of-usub-is-non-zero-and-no-overflow.ll Mon Sep 9 07:27:39 2019
@@ -108,7 +108,7 @@ define i1 @t4_commutability1(i8 %base, i
; CHECK-LABEL: @t4_commutability1(
; CHECK-NEXT: [[ADJUSTED:%.*]] = sub i8 [[BASE:%.*]], [[OFFSET:%.*]]
; CHECK-NEXT: call void @use8(i8 [[ADJUSTED]])
-; CHECK-NEXT: [[NO_UNDERFLOW:%.*]] = icmp ule i8 [[BASE]], [[OFFSET]]
+; CHECK-NEXT: [[NO_UNDERFLOW:%.*]] = icmp uge i8 [[BASE]], [[OFFSET]]
; CHECK-NEXT: call void @use1(i1 [[NO_UNDERFLOW]])
; CHECK-NEXT: [[NOT_NULL:%.*]] = icmp ne i8 [[ADJUSTED]], 0
; CHECK-NEXT: call void @use1(i1 [[NOT_NULL]])
@@ -117,7 +117,7 @@ define i1 @t4_commutability1(i8 %base, i
;
%adjusted = sub i8 %base, %offset
call void @use8(i8 %adjusted)
- %no_underflow = icmp ule i8 %base, %offset ; swapped
+ %no_underflow = icmp uge i8 %base, %offset ; swapped
call void @use1(i1 %no_underflow)
%not_null = icmp ne i8 %adjusted, 0
call void @use1(i1 %not_null)
More information about the llvm-commits
mailing list