[llvm] 3b27cc2 - Regenerate llvm-cov tests

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 25 01:34:22 PST 2024


Author: NAKAMURA Takumi
Date: 2024-02-25T18:33:53+09:00
New Revision: 3b27cc2ceec265d751c909c431ed62c0d7ed9b51

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

LOG: Regenerate llvm-cov tests

Added: 
    

Modified: 
    llvm/test/tools/llvm-cov/Inputs/mcdc-const.o
    llvm/test/tools/llvm-cov/Inputs/mcdc-general.o
    llvm/test/tools/llvm-cov/Inputs/mcdc-macro.o
    llvm/test/tools/llvm-cov/Inputs/mcdc-maxbs.o
    llvm/test/tools/llvm-cov/mcdc-macro.test
    llvm/test/tools/llvm-cov/mcdc-maxbs.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-cov/Inputs/mcdc-const.o b/llvm/test/tools/llvm-cov/Inputs/mcdc-const.o
index 1232088ee60fa0..1145fcc6f71254 100644
Binary files a/llvm/test/tools/llvm-cov/Inputs/mcdc-const.o and b/llvm/test/tools/llvm-cov/Inputs/mcdc-const.o 
diff er

diff  --git a/llvm/test/tools/llvm-cov/Inputs/mcdc-general.o b/llvm/test/tools/llvm-cov/Inputs/mcdc-general.o
index afe6f95cf0b829..e802f51132c068 100644
Binary files a/llvm/test/tools/llvm-cov/Inputs/mcdc-general.o and b/llvm/test/tools/llvm-cov/Inputs/mcdc-general.o 
diff er

diff  --git a/llvm/test/tools/llvm-cov/Inputs/mcdc-macro.o b/llvm/test/tools/llvm-cov/Inputs/mcdc-macro.o
index 667ccd132d2fb8..c0a9d604455303 100644
Binary files a/llvm/test/tools/llvm-cov/Inputs/mcdc-macro.o and b/llvm/test/tools/llvm-cov/Inputs/mcdc-macro.o 
diff er

diff  --git a/llvm/test/tools/llvm-cov/Inputs/mcdc-maxbs.o b/llvm/test/tools/llvm-cov/Inputs/mcdc-maxbs.o
index 8e592cf6563da9..bc993b19e84733 100644
Binary files a/llvm/test/tools/llvm-cov/Inputs/mcdc-maxbs.o and b/llvm/test/tools/llvm-cov/Inputs/mcdc-maxbs.o 
diff er

diff  --git a/llvm/test/tools/llvm-cov/mcdc-macro.test b/llvm/test/tools/llvm-cov/mcdc-macro.test
index 339284bba2c9bd..14dd5ebd68eb1a 100644
--- a/llvm/test/tools/llvm-cov/mcdc-macro.test
+++ b/llvm/test/tools/llvm-cov/mcdc-macro.test
@@ -89,11 +89,12 @@ Instructions for regenerating the test:
 cd %S/Inputs # Or copy mcdc-macro.c into the working directory
 
 clang -fcoverage-mcdc -fprofile-instr-generate -fcoverage-compilation-dir=. \
-    -O3 -mllvm -enable-name-compression=false \
+    -Os -mllvm -enable-name-compression=false \
     -fcoverage-mapping mcdc-macro.c -c
 
 # Instructions for generating proftext
 clang -fprofile-instr-generate mcdc-macro.o
+rm -f default.prof*
 ./a.out
 llvm-profdata merge --sparse -o default.profdata default.profraw
 llvm-profdata merge --text -o mcdc-macro.proftext default.profdata

diff  --git a/llvm/test/tools/llvm-cov/mcdc-maxbs.test b/llvm/test/tools/llvm-cov/mcdc-maxbs.test
index bbb5fb8b6059ae..c6bd18048fb95f 100644
--- a/llvm/test/tools/llvm-cov/mcdc-maxbs.test
+++ b/llvm/test/tools/llvm-cov/mcdc-maxbs.test
@@ -31,7 +31,8 @@
 # Instructions for regenerating the test object:
 
 cd %S/Inputs # or copy %S/Inputs/mcdc-maxbs.c into the working directory
-clang -O3 -fcoverage-mcdc -fprofile-instr-generate \
+
+clang -Os -fcoverage-mcdc -fprofile-instr-generate \
     -fcoverage-mapping -fcoverage-compilation-dir=. \
     -mllvm -enable-name-compression=false \
     mcdc-maxbs.c -c -o mcdc-maxbs.o
@@ -39,6 +40,7 @@ clang -O3 -fcoverage-mcdc -fprofile-instr-generate \
 # Instructions for regenerating the test vector:
 
 clang -fprofile-instr-generate mcdc-maxbs.o
+rm -f default.prof*
 
 # Doesn't crash if argc > 1
 ./a.out


        


More information about the llvm-commits mailing list