From 1d67ab02aeb71b1a250a44161c8fdb3e97b04210 Mon Sep 17 00:00:00 2001 From: "Alon Zakai (kripken)" Date: Fri, 28 Jul 2017 12:45:19 -0700 Subject: do not combine a load/store offset with a constant pointer if it would wrap a negative value to a positive one, as trapping is tricky --- check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check.py') diff --git a/check.py b/check.py index 5c42c8812..105c177c7 100755 --- a/check.py +++ b/check.py @@ -78,7 +78,7 @@ for t in sorted(os.listdir(os.path.join(options.binaryen_test, 'passes'))): print '..', t binary = '.wasm' in t passname = os.path.basename(t).replace('.wast', '').replace('.wasm', '') - opts = ['-' + passname] if passname.startswith('O') else ['--' + p for p in passname.split('_')] + opts = [('--' + p if not p.startswith('O') else '-' + p) for p in passname.split('_')] t = os.path.join(options.binaryen_test, 'passes', t) actual = '' for module, asserts in split_wast(t): -- cgit v1.2.3