[lld] 361a822 - [ELF][test] Add -NEXT and -NOT after D150644 (–-print-memory-usage)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu May 25 13:05:48 PDT 2023


Author: Fangrui Song
Date: 2023-05-25T13:05:43-07:00
New Revision: 361a8226f981252bd8b152e9d0f2b47c7a25c266

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

LOG: [ELF][test] Add -NEXT and -NOT after D150644 (–-print-memory-usage)

Added: 
    

Modified: 
    lld/test/ELF/linkerscript/print-memory-usage.s

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/linkerscript/print-memory-usage.s b/lld/test/ELF/linkerscript/print-memory-usage.s
index 0db90a940550..8077a5912ae0 100644
--- a/lld/test/ELF/linkerscript/print-memory-usage.s
+++ b/lld/test/ELF/linkerscript/print-memory-usage.s
@@ -10,16 +10,18 @@
 # RUN: ld.lld -T %t/3.t %t/a2.o -o %t/a3 --print-memory-usage \
 # RUN:     | FileCheck %s --check-prefix=CHECK3 --match-full-lines --strict-whitespace
 
-# CHECK1:Memory region         Used Size  Region Size  %age Used
-# CHECK1:             ROM:           4 B         1 KB      0.39%
-# CHECK1:             RAM:           4 B       256 KB      0.00%
+#      CHECK1:Memory region         Used Size  Region Size  %age Used
+# CHECK1-NEXT:             ROM:           4 B         1 KB      0.39%
+# CHECK1-NEXT:             RAM:           4 B       256 KB      0.00%
+#  CHECK1-NOT:{{.}}
 
 # CHECK2:Memory region         Used Size  Region Size  %age Used
 # CHECK2-NOT:{{.}}
 
-# CHECK3:Memory region         Used Size  Region Size  %age Used
-# CHECK3:             ROM:        256 KB         1 MB     25.00%
-# CHECK3:             RAM:          32 B         2 GB      0.00%
+#      CHECK3:Memory region         Used Size  Region Size  %age Used
+# CHECK3-NEXT:             ROM:        256 KB         1 MB     25.00%
+# CHECK3-NEXT:             RAM:          32 B         2 GB      0.00%
+#  CHECK3-NOT:{{.}}
 
 #--- a1.s
 .text


        


More information about the llvm-commits mailing list