[compiler-rt] 3bd112c - Update fuzzing test to comply with new optimisation.

Mitch Phillips via llvm-commits llvm-commits at lists.llvm.org
Fri May 20 11:01:46 PDT 2022


Author: Mitch Phillips
Date: 2022-05-20T11:01:31-07:00
New Revision: 3bd112c720dc614a59e3f34ebf9b45075037bfa0

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

LOG: Update fuzzing test to comply with new optimisation.

https://reviews.llvm.org/D125933 improved some of LLVM's handling of
binary ORs, which meant we have one less conditional branch, because the
'if (Size > 5 && Data[5] == 'R')' and 'if (bits == 63)' branches are now
correctly folded.

Added: 
    

Modified: 
    compiler-rt/test/fuzzer/merge_two_step.test

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/fuzzer/merge_two_step.test b/compiler-rt/test/fuzzer/merge_two_step.test
index fbbd2a52c1f7f..3634ec62b1953 100644
--- a/compiler-rt/test/fuzzer/merge_two_step.test
+++ b/compiler-rt/test/fuzzer/merge_two_step.test
@@ -10,7 +10,7 @@ RUN: echo ..Z... > %t/T1/3
 RUN: rm -f %t/MCF
 RUN: %run %t-FullCoverageSetTest -merge=1 -merge_control_file=%t/MCF %t/T0 %t/T1 2>&1 | FileCheck %s --check-prefix=CHECK1
 CHECK1: MERGE-OUTER: 3 files, 0 in the initial corpus
-CHECK1: MERGE-OUTER: 3 new files with {{.*}} new features added; 11 new coverage edges
+CHECK1: MERGE-OUTER: 3 new files with {{.*}} new features added; 10 new coverage edges
 
 RUN: echo ...Z.. > %t/T2/1
 RUN: echo ....E. > %t/T2/2
@@ -26,6 +26,6 @@ CHECK2: MERGE-OUTER: non-empty control file provided
 CHECK2: MERGE-OUTER: control file ok, 3 files total, first not processed file 3
 CHECK2: MERGE-OUTER: starting merge from scratch, but reusing coverage information from the given control file
 CHECK2: MERGE-OUTER: 7 files, 0 in the initial corpus, 3 processed earlier
-CHECK2: MERGE-INNER: using the control file 
+CHECK2: MERGE-INNER: using the control file
 CHECK2: MERGE-INNER: 4 total files; 0 processed earlier; will process 4 files now
-CHECK2: MERGE-OUTER: 6 new files with {{.*}} new features added; 14 new coverage edges
+CHECK2: MERGE-OUTER: 6 new files with {{.*}} new features added; 13 new coverage edges


        


More information about the llvm-commits mailing list