diff options
author | Alon Zakai <azakai@google.com> | 2020-04-16 12:31:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 12:31:49 -0700 |
commit | c9162258a5364f31907786078685b567878c79db (patch) | |
tree | f982c5d9ec9a6418cbb4ec4662fd5341c9d47801 | |
parent | 0d5c9dc7b8f704283b2586d88385709326a1c81d (diff) | |
download | binaryen-c9162258a5364f31907786078685b567878c79db.tar.gz binaryen-c9162258a5364f31907786078685b567878c79db.tar.bz2 binaryen-c9162258a5364f31907786078685b567878c79db.zip |
Disable multivalue in fuzzer in a clearer way (#2771)
-rwxr-xr-x | scripts/fuzz_opt.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py index a777a3a1a..58026e494 100755 --- a/scripts/fuzz_opt.py +++ b/scripts/fuzz_opt.py @@ -33,11 +33,8 @@ assert sys.version_info.major == 3, 'requires Python 3!' # parameters # feature options that are always passed to the tools. -# exceptions: https://github.com/WebAssembly/binaryen/issues/2195 -# simd: known issues with d8 -# atomics, bulk memory: doesn't work in wasm2js -# truncsat: https://github.com/WebAssembly/binaryen/issues/2198 -CONSTANT_FEATURE_OPTS = ['--all-features'] +# * multivalue: https://github.com/WebAssembly/binaryen/issues/2770 +CONSTANT_FEATURE_OPTS = ['--all-features', '--disable-multivalue'] INPUT_SIZE_MIN = 1024 INPUT_SIZE_MEAN = 40 * 1024 @@ -698,8 +695,7 @@ def randomize_opt_flags(): # possible feature options that are sometimes passed to the tools. this # contains the list of all possible feature flags we can disable (after # we enable all before that in the constant options) -POSSIBLE_FEATURE_OPTS = run([in_bin('wasm-opt'), '--print-features', '-all', in_binaryen('test', 'hello_world.wat'), '-all']).replace('--enable', '--disable').strip().split('\n') -POSSIBLE_FEATURE_OPTS.remove('--disable-multivalue') +POSSIBLE_FEATURE_OPTS = run([in_bin('wasm-opt'), '--print-features', in_binaryen('test', 'hello_world.wat')] + CONSTANT_FEATURE_OPTS).replace('--enable', '--disable').strip().split('\n') print('POSSIBLE_FEATURE_OPTS:', POSSIBLE_FEATURE_OPTS) if __name__ == '__main__': |