diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-21 18:06:49 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-21 18:29:02 -0800 |
commit | 0e20a4f58d6b2fa97320e229b87d80cc6cacef67 (patch) | |
tree | c1dcf504f7e111bea19c332d00414be9e2846a39 | |
parent | 020fc37f70f985e090b24778fa3ba1d9f52f29b2 (diff) |
add asm3 test mode
-rwxr-xr-x | tests/runner.py | 2 | ||||
-rw-r--r-- | tests/test_core.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 7f0cbaed..f59d5cb9 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -36,7 +36,7 @@ except: # Core test runner class, shared between normal tests and benchmarks checked_sanity = False -test_modes = ['default', 'o1', 'o2', 'asm1', 'asm2', 'asm2f', 'asm2g', 'asm2x86', 's_0_0', 's_0_1'] +test_modes = ['default', 'o1', 'o2', 'asm1', 'asm2', 'asm3', 'asm2f', 'asm2g', 'asm2x86', 's_0_0', 's_0_1'] test_index = 0 class RunnerCore(unittest.TestCase): diff --git a/tests/test_core.py b/tests/test_core.py index 493ab77b..311f33a0 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -6343,7 +6343,7 @@ def make_run(fullname, name=-1, compiler=-1, embetter=0, quantum_size=0, if self.emcc_args is not None: Settings.load(self.emcc_args) Building.LLVM_OPTS = 0 - if '-O2' in self.emcc_args: + if '-O2' in self.emcc_args or '-O3' in self.emcc_args: Building.COMPILER_TEST_OPTS = [] # remove -g in -O2 tests, for more coverage #Building.COMPILER_TEST_OPTS += self.emcc_args for arg in self.emcc_args: @@ -6397,6 +6397,7 @@ o2 = make_run("o2", compiler=CLANG, emcc_args=["-O2", "-s", "ASM_JS=0", "-s", "J # asm.js asm1 = make_run("asm1", compiler=CLANG, emcc_args=["-O1"]) asm2 = make_run("asm2", compiler=CLANG, emcc_args=["-O2"]) +asm3 = make_run("asm3", compiler=CLANG, emcc_args=["-O3"]) asm2f = make_run("asm2f", compiler=CLANG, emcc_args=["-O2", "-s", "PRECISE_F32=1"]) if os.environ.get('EMCC_FAST_COMPILER') == '1': asm2g = make_run("asm2g", compiler=CLANG, emcc_args=["-O2", "-g", "-s", "ASSERTIONS=1", "--memory-init-file", "1", "-s", "SAFE_HEAP=1"]) |