|
36 | 36 | # truncsat: https://github.com/WebAssembly/binaryen/issues/2198 |
37 | 37 | CONSTANT_FEATURE_OPTS = ['--all-features'] |
38 | 38 |
|
39 | | -# possible feature options that are sometimes passed to the tools. |
40 | | -POSSIBLE_FEATURE_OPTS = ['--disable-exception-handling', '--disable-simd', '--disable-threads', '--disable-bulk-memory', '--disable-nontrapping-float-to-int', '--disable-tail-call'] |
41 | | - |
42 | 39 | FUZZ_OPTS = [] |
43 | 40 |
|
44 | 41 | INPUT_SIZE_LIMIT = 150 * 1024 |
@@ -297,7 +294,7 @@ def run(self, wasm): |
297 | 294 | return out |
298 | 295 |
|
299 | 296 | def can_run_on_feature_opts(self, feature_opts): |
300 | | - return all([x in feature_opts for x in ['--disable-exception-handling', '--disable-simd', '--disable-threads', '--disable-bulk-memory', '--disable-nontrapping-float-to-int', '--disable-tail-call']]) |
| 297 | + return all([x in feature_opts for x in ['--disable-exception-handling', '--disable-simd', '--disable-threads', '--disable-bulk-memory', '--disable-nontrapping-float-to-int', '--disable-tail-call', '--disable-sign-ext']]) |
301 | 298 |
|
302 | 299 |
|
303 | 300 | class Asyncify(TestCaseHandler): |
@@ -531,6 +528,12 @@ def get_multiple_opt_choices(): |
531 | 528 | if not NANS: |
532 | 529 | FUZZ_OPTS += ['--no-fuzz-nans'] |
533 | 530 |
|
| 531 | +# possible feature options that are sometimes passed to the tools. this |
| 532 | +# contains the list of all possible feature flags we can disable (after |
| 533 | +# we enable all before that in the constant options) |
| 534 | +POSSIBLE_FEATURE_OPTS = run([in_bin('wasm-opt'), '--print-features', '-all', in_binaryen('test', 'hello_world.wast'), '-all']).replace('--enable', '--disable').strip().split('\n') |
| 535 | +print('POSSIBLE_FEATURE_OPTS:', POSSIBLE_FEATURE_OPTS) |
| 536 | + |
534 | 537 | if __name__ == '__main__': |
535 | 538 | print('checking infinite random inputs') |
536 | 539 | random.seed(time.time() * os.getpid()) |
|
0 commit comments