[llvm] 3ae08da - [NFC][InstCombine] Autogenerate check lines in a test affected by the future change

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 2 14:13:54 PDT 2022


Author: Roman Lebedev
Date: 2022-04-03T00:12:56+03:00
New Revision: 3ae08dac8f1031a5874572bf6f0a50097e1fbd25

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

LOG: [NFC][InstCombine] Autogenerate check lines in a test affected by the future change

Added: 
    

Modified: 
    llvm/test/Transforms/InstCombine/apint-and.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/InstCombine/apint-and.ll b/llvm/test/Transforms/InstCombine/apint-and.ll
index 8e0dab786d59d..35bf90434406b 100644
--- a/llvm/test/Transforms/InstCombine/apint-and.ll
+++ b/llvm/test/Transforms/InstCombine/apint-and.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
 
 ; FIXME: Some of these tests belong in InstSimplify.
@@ -14,7 +15,7 @@ define i39 @test0(i39 %A) {
 
 define i15 @test2(i15 %x) {
 ; CHECK-LABEL: @test2(
-; CHECK-NEXT:    ret i15 %x
+; CHECK-NEXT:    ret i15 [[X:%.*]]
 ;
   %tmp.2 = and i15 %x, -1 ; noop
   ret i15 %tmp.2
@@ -31,7 +32,7 @@ define i23 @test3(i23 %x) {
 
 define i1 @test4(i37 %x) {
 ; CHECK-LABEL: @test4(
-; CHECK-NEXT:    [[B:%.*]] = icmp ugt i37 %x, 2147483647
+; CHECK-NEXT:    [[B:%.*]] = icmp ugt i37 [[X:%.*]], 2147483647
 ; CHECK-NEXT:    ret i1 [[B]]
 ;
   %A = and i37 %x, -2147483648
@@ -41,9 +42,9 @@ define i1 @test4(i37 %x) {
 
 define i7 @test5(i7 %A, i7* %P) {
 ; CHECK-LABEL: @test5(
-; CHECK-NEXT:    [[B:%.*]] = or i7 %A, 3
+; CHECK-NEXT:    [[B:%.*]] = or i7 [[A:%.*]], 3
 ; CHECK-NEXT:    [[C:%.*]] = xor i7 [[B]], 12
-; CHECK-NEXT:    store i7 [[C]], i7* %P, align 1
+; CHECK-NEXT:    store i7 [[C]], i7* [[P:%.*]], align 1
 ; CHECK-NEXT:    ret i7 3
 ;
   %B = or i7 %A, 3
@@ -55,7 +56,7 @@ define i7 @test5(i7 %A, i7* %P) {
 
 define i47 @test7(i47 %A) {
 ; CHECK-LABEL: @test7(
-; CHECK-NEXT:    [[TMP1:%.*]] = lshr i47 %A, 39
+; CHECK-NEXT:    [[TMP1:%.*]] = lshr i47 [[A:%.*]], 39
 ; CHECK-NEXT:    ret i47 [[TMP1]]
 ;
   %X = ashr i47 %A, 39 ;; sign extend
@@ -75,7 +76,7 @@ define i999 @test8(i999 %A) {
 
 define i1005 @test9(i1005 %x) {
 ; CHECK-LABEL: @test9(
-; CHECK-NEXT:    ret i1005 %x
+; CHECK-NEXT:    ret i1005 [[X:%.*]]
 ;
   %tmp.2 = and i1005 %x, -1 ; noop
   ret i1005 %tmp.2
@@ -92,7 +93,7 @@ define i123 @test10(i123 %x) {
 
 define i1 @test11(i737 %x) {
 ; CHECK-LABEL: @test11(
-; CHECK-NEXT:    [[B:%.*]] = icmp ugt i737 %x, 2147483647
+; CHECK-NEXT:    [[B:%.*]] = icmp ugt i737 [[X:%.*]], 2147483647
 ; CHECK-NEXT:    ret i1 [[B]]
 ;
   %A = and i737 %x, -2147483648
@@ -102,9 +103,9 @@ define i1 @test11(i737 %x) {
 
 define i117 @test12(i117 %A, i117* %P) {
 ; CHECK-LABEL: @test12(
-; CHECK-NEXT:    [[B:%.*]] = or i117 %A, 3
+; CHECK-NEXT:    [[B:%.*]] = or i117 [[A:%.*]], 3
 ; CHECK-NEXT:    [[C:%.*]] = xor i117 [[B]], 12
-; CHECK-NEXT:    store i117 [[C]], i117* %P, align 4
+; CHECK-NEXT:    store i117 [[C]], i117* [[P:%.*]], align 4
 ; CHECK-NEXT:    ret i117 3
 ;
   %B = or i117 %A, 3
@@ -116,7 +117,7 @@ define i117 @test12(i117 %A, i117* %P) {
 
 define i1024 @test13(i1024 %A) {
 ; CHECK-LABEL: @test13(
-; CHECK-NEXT:    [[TMP1:%.*]] = lshr i1024 %A, 1016
+; CHECK-NEXT:    [[TMP1:%.*]] = lshr i1024 [[A:%.*]], 1016
 ; CHECK-NEXT:    ret i1024 [[TMP1]]
 ;
   %X = ashr i1024 %A, 1016 ;; sign extend


        


More information about the llvm-commits mailing list