summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-07-19 21:09:21 +0000
committerCraig Topper <craig.topper@intel.com>2019-07-19 21:09:21 +0000
commit3a3c58f04598fe471797b85e444cd664180eb092 (patch)
tree161f3acddacd131c8e2e0d52656e8e5c90cf0816
parent5e23f4282038271cbc2316033bbc9061e5ac5e36 (diff)
downloadbcm5719-llvm-3a3c58f04598fe471797b85e444cd664180eb092.tar.gz
bcm5719-llvm-3a3c58f04598fe471797b85e444cd664180eb092.zip
[InstCombine] Fix copy/paste mistake in the test cases I added for PR42691. NFC
llvm-svn: 366614
-rw-r--r--llvm/test/Transforms/InstCombine/and-or-icmps.ll8
1 files 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 ac0a43e5484..60576d079f2 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
OpenPOWER on IntegriCloud