summaryrefslogtreecommitdiff
path: root/scripts/test/asm2wasm.py
diff options
context:
space:
mode:
authorjgravelle-google <jgravelle@google.com>2017-10-03 10:30:50 -0700
committerGitHub <noreply@github.com>2017-10-03 10:30:50 -0700
commit8283229f6bccdcfa60d7613be10d0f93531fdd34 (patch)
tree538aa36a6bb1b6d012ce5a7512345f628e68d494 /scripts/test/asm2wasm.py
parent1f8d8a53e8fcee0791c11345fd7f328255cfa22c (diff)
downloadbinaryen-8283229f6bccdcfa60d7613be10d0f93531fdd34.tar.gz
binaryen-8283229f6bccdcfa60d7613be10d0f93531fdd34.tar.bz2
binaryen-8283229f6bccdcfa60d7613be10d0f93531fdd34.zip
Add --trap-mode=allow/clamp/js argument to asm2wasm and s2wasm (#1210)
* Add --trap-mode=allow/clamp/js argument to asm2wasm and s2wasm * Update asm2wasm and auto_update_tests scripts to use --trap-mode * Throw std::invalid_argument instead of adding a new Invalid TrapMode type * Remove legacy asm2wasm trap mode arguments
Diffstat (limited to 'scripts/test/asm2wasm.py')
-rw-r--r--scripts/test/asm2wasm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/test/asm2wasm.py b/scripts/test/asm2wasm.py
index db37a237a..7e0e3278c 100644
--- a/scripts/test/asm2wasm.py
+++ b/scripts/test/asm2wasm.py
@@ -35,10 +35,10 @@ def test_asm2wasm():
cmd = ASM2WASM + [os.path.join(options.binaryen_test, asm)]
wasm = asm.replace('.asm.js', '.fromasm')
if not precise:
- cmd += ['--emit-potential-traps', '--ignore-implicit-traps']
+ cmd += ['--trap-mode=allow', '--ignore-implicit-traps']
wasm += '.imprecise'
elif precise == 2:
- cmd += ['--emit-clamped-potential-traps']
+ cmd += ['--trap-mode=clamp']
wasm += '.clamp'
if not opts:
wasm += '.no-opts'