aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-28 23:08:34 -0500
committerAlon Zakai <alonzakai@gmail.com>2013-02-28 23:08:34 -0500
commit7c67a3f2d15f62747ff639cd1f5437c6f5a5ce52 (patch)
tree1994d5ceb64eb80539a07cbd357631fc16db5d4a
parentcfcf2febb094a3befd65fc24f26da385c4d03090 (diff)
add testing for registerize running in asm.js mode (but not with -g)
-rwxr-xr-xtests/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index c0c95e4a..bf6986db 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -8534,6 +8534,8 @@ Options that are modified or new in %s include:
# emcc -s RELOOP=1 src.cpp ==> should pass -s to emscripten.py. --typed-arrays is a convenient alias for -s USE_TYPED_ARRAYS
for params, test, text in [
+ (['-s', 'ASM_JS=1', '-O2'], lambda generated: 'var i1 = 0' in generated, 'registerize is run by default in -O2'),
+ (['-s', 'ASM_JS=1', '-O2', '-g'], lambda generated: 'var i1 = 0' not in generated, 'registerize is cancelled by -g'),
(['-s', 'INLINING_LIMIT=0'], lambda generated: 'function _dump' in generated, 'no inlining without opts'),
(['-O3', '-s', 'INLINING_LIMIT=0', '--closure', '0'], lambda generated: 'function _dump' not in generated, 'lto/inlining'),
(['-s', 'USE_TYPED_ARRAYS=0'], lambda generated: 'new Int32Array' not in generated, 'disable typed arrays'),