From 3a3c58f04598fe471797b85e444cd664180eb092 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 19 Jul 2019 21:09:21 +0000 Subject: [PATCH] [InstCombine] Fix copy/paste mistake in the test cases I added for PR42691. NFC llvm-svn: 366614 --- llvm/test/Transforms/InstCombine/and-or-icmps.ll | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/llvm/test/Transforms/InstCombine/and-or-icmps.ll b/llvm/test/Transforms/InstCombine/and-or-icmps.ll index ac0a43e54840..60576d079f2d 100644 --- a/llvm/test/Transforms/InstCombine/and-or-icmps.ll +++ b/llvm/test/Transforms/InstCombine/and-or-icmps.ll @@ -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