[llvm] de1e3c6 - [InstCombine] Fix typo in test (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 07:55:04 PDT 2022


Author: Nikita Popov
Date: 2022-04-22T16:54:56+02:00
New Revision: de1e3c649fdf850df543120bede4de1d04d3f476

URL: https://github.com/llvm/llvm-project/commit/de1e3c649fdf850df543120bede4de1d04d3f476
DIFF: https://github.com/llvm/llvm-project/commit/de1e3c649fdf850df543120bede4de1d04d3f476.diff

LOG: [InstCombine] Fix typo in test (NFC)

Added: 
    

Modified: 
    llvm/test/Transforms/InstCombine/icmp.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/InstCombine/icmp.ll b/llvm/test/Transforms/InstCombine/icmp.ll
index 45c63ae801c7d..24945c783c7ae 100644
--- a/llvm/test/Transforms/InstCombine/icmp.ll
+++ b/llvm/test/Transforms/InstCombine/icmp.ll
@@ -2384,12 +2384,12 @@ define i1 @and_icmp_ne_B_0_icmp_uge_A_B_wrong_op1(i64 %a, i64 %b) {
 define i1 @and_icmp_ne_B_0_icmp_uge_A_B_wrong_op2(i64 %a, i64 %b, i64 %c) {
 ; CHECK-LABEL: @and_icmp_ne_B_0_icmp_uge_A_B_wrong_op2(
 ; CHECK-NEXT:    [[TMP1:%.*]] = icmp ne i64 [[B:%.*]], 0
-; CHECK-NEXT:    [[TMP2:%.*]] = icmp uge i64 [[C:%.*]], [[B]]
+; CHECK-NEXT:    [[TMP2:%.*]] = icmp uge i64 [[A:%.*]], [[C:%.*]]
 ; CHECK-NEXT:    [[TMP3:%.*]] = and i1 [[TMP1]], [[TMP2]]
 ; CHECK-NEXT:    ret i1 [[TMP3]]
 ;
   %1 = icmp ne i64 %b, 0
-  %2 = icmp uge i64 %c, %b
+  %2 = icmp uge i64 %a, %c
   %3 = and i1 %1, %2
   ret i1 %3
 }


        


More information about the llvm-commits mailing list