[llvm] r366614 - [InstCombine] Fix copy/paste mistake in the test cases I added for PR42691. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 19 14:09:21 PDT 2019
Author: ctopper
Date: Fri Jul 19 14:09:21 2019
New Revision: 366614
URL: http://llvm.org/viewvc/llvm-project?rev=366614&view=rev
Log:
[InstCombine] Fix copy/paste mistake in the test cases I added for PR42691. NFC
Modified:
llvm/trunk/test/Transforms/InstCombine/and-or-icmps.ll
Modified: llvm/trunk/test/Transforms/InstCombine/and-or-icmps.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/and-or-icmps.ll?rev=366614&r1=366613&r2=366614&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/and-or-icmps.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/and-or-icmps.ll Fri Jul 19 14:09:21 2019
@@ -316,10 +316,12 @@ define i1 @PR42691_5(i32 %x) {
define i1 @PR42691_6(i32 %x) {
; CHECK-LABEL: @PR42691_6(
-; CHECK-NEXT: [[TMP1:%.*]] = icmp sgt i32 %x, -2
-; CHECK-NEXT: ret i1 [[TMP1]]
+; CHECK-NEXT: [[C1:%.*]] = icmp ult i32 %x, -2147483647
+; CHECK-NEXT: [[C2:%.*]] = icmp eq i32 %x, -1
+; CHECK-NEXT: [[C:%.*]] = or i1 [[C1]], [[C2]]
+; CHECK-NEXT: ret i1 [[C]]
;
- %c1 = icmp ult i32 %x, 2147483648
+ %c1 = icmp ult i32 %x, 2147483649
%c2 = icmp eq i32 %x, 4294967295
%c = or i1 %c1, %c2
ret i1 %c
More information about the llvm-commits
mailing list