diff --git a/llvm/test/tools/llvm-cov/Inputs/mcdc-const.o b/llvm/test/tools/llvm-cov/Inputs/mcdc-const.o index 1232088ee60fa..1145fcc6f7125 100644 Binary files a/llvm/test/tools/llvm-cov/Inputs/mcdc-const.o and b/llvm/test/tools/llvm-cov/Inputs/mcdc-const.o differ diff --git a/llvm/test/tools/llvm-cov/Inputs/mcdc-general.o b/llvm/test/tools/llvm-cov/Inputs/mcdc-general.o index afe6f95cf0b82..e802f51132c06 100644 Binary files a/llvm/test/tools/llvm-cov/Inputs/mcdc-general.o and b/llvm/test/tools/llvm-cov/Inputs/mcdc-general.o differ diff --git a/llvm/test/tools/llvm-cov/Inputs/mcdc-macro.o b/llvm/test/tools/llvm-cov/Inputs/mcdc-macro.o index 667ccd132d2fb..c0a9d60445530 100644 Binary files a/llvm/test/tools/llvm-cov/Inputs/mcdc-macro.o and b/llvm/test/tools/llvm-cov/Inputs/mcdc-macro.o differ diff --git a/llvm/test/tools/llvm-cov/Inputs/mcdc-maxbs.o b/llvm/test/tools/llvm-cov/Inputs/mcdc-maxbs.o index 8e592cf6563da..bc993b19e8473 100644 Binary files a/llvm/test/tools/llvm-cov/Inputs/mcdc-maxbs.o and b/llvm/test/tools/llvm-cov/Inputs/mcdc-maxbs.o differ diff --git a/llvm/test/tools/llvm-cov/mcdc-macro.test b/llvm/test/tools/llvm-cov/mcdc-macro.test index 339284bba2c9b..14dd5ebd68eb1 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 bbb5fb8b6059a..c6bd18048fb95 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