diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/fuzz_opt.py | 6 | ||||
-rw-r--r-- | scripts/fuzz_shell.js | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py index 8dc87cb7a..c5498822e 100755 --- a/scripts/fuzz_opt.py +++ b/scripts/fuzz_opt.py @@ -188,7 +188,7 @@ def randomize_fuzz_settings(): FUZZ_OPTS += ['--no-fuzz-oob'] if random.random() < 0.5: LEGALIZE = True - FUZZ_OPTS += ['--legalize-js-interface'] + FUZZ_OPTS += ['--legalize-and-prune-js-interface'] else: LEGALIZE = False @@ -926,7 +926,7 @@ class CompareVMs(TestCaseHandler): compare(before[vm], after[vm], 'CompareVMs between before and after: ' + vm.name) def can_run_on_feature_opts(self, feature_opts): - return all_disallowed(['simd', 'multivalue', 'multimemory']) + return True # Check for determinism - the same command must have the same output. @@ -957,7 +957,7 @@ class Wasm2JS(TestCaseHandler): # later make sense (if we don't do this, the wasm may have i64 exports). # after applying other necessary fixes, we'll recreate the after wasm # from scratch. - run([in_bin('wasm-opt'), before_wasm, '--legalize-js-interface', '-o', before_wasm_temp] + FEATURE_OPTS) + run([in_bin('wasm-opt'), before_wasm, '--legalize-and-prune-js-interface', '-o', before_wasm_temp] + FEATURE_OPTS) compare_before_to_after = random.random() < 0.5 compare_to_interpreter = compare_before_to_after and random.random() < 0.5 if compare_before_to_after: diff --git a/scripts/fuzz_shell.js b/scripts/fuzz_shell.js index 743e838b5..736110751 100644 --- a/scripts/fuzz_shell.js +++ b/scripts/fuzz_shell.js @@ -73,6 +73,11 @@ var imports = { 'log-i64': logValue, 'log-f32': logValue, 'log-f64': logValue, + // JS cannot log v128 values (we trap on the boundary), but we must still + // provide an import so that we do not trap during linking. (Alternatively, + // we could avoid running JS on code with SIMD in it, but it is useful to + // fuzz such code as much as we can.) + 'log-v128': logValue, }, 'env': { 'setTempRet0': function(x) { tempRet0 = x }, |