From acb12584c277d9bfb0b1c78e65101fa54e9a7361 Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Tue, 26 Nov 2024 14:11:06 -0800 Subject: [wasm2js] Run LLVM nontrapping fptoint lowering when running for emscripten (#7116) Lower away saturating fptoint operations when we know we are using emscripten. --- scripts/test/wasm2js.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'scripts/test/wasm2js.py') diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py index 1f6ca4f8a..224dc01cb 100644 --- a/scripts/test/wasm2js.py +++ b/scripts/test/wasm2js.py @@ -162,10 +162,11 @@ def update_wasm2js_tests(): if not wasm.endswith('.wast'): continue - if os.path.basename(wasm) in wasm2js_skipped_tests: + basename = os.path.basename(wasm) + if basename in wasm2js_skipped_tests: continue - asm = os.path.basename(wasm).replace('.wast', '.2asm.js') + asm = basename.replace('.wast', '.2asm.js') expected_file = os.path.join(shared.get_test_dir('wasm2js'), asm) if opt: expected_file += '.opt' @@ -192,9 +193,9 @@ def update_wasm2js_tests(): '--disable-exception-handling'] if opt: cmd += ['-O'] - if 'emscripten' in wasm: + if 'emscripten' in basename: cmd += ['--emscripten'] - if 'deterministic' in t: + if 'deterministic' in basename: cmd += ['--deterministic'] out = support.run_command(cmd) all_out.append(out) -- cgit v1.2.3