From a4004d2da82c1bf262a7344e93b080d77aff2280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Sat, 20 Jun 2015 20:21:16 +0300 Subject: [PATCH] Enable test_sse1 to run. --- tests/test_core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_core.py b/tests/test_core.py index 129857443..5fa58cd9c 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -5540,12 +5540,13 @@ return malloc(size); test() def test_sse1(self): - return self.skip('TODO: This test fails due to bugs #2840, #3044, #3045, #3046 and #3048 (also see #3043 and #3049)') + if self.is_emterpreter(): return self.skip('todo') + if 'SAFE_HEAP=1' in self.emcc_args: return self.skip('SSE with SAFE_HEAP=1 breaks due to NaN canonicalization!') Settings.PRECISE_F32 = 1 # SIMD currently requires Math.fround orig_args = self.emcc_args for mode in [[], ['-s', 'SIMD=1']]: - self.emcc_args = orig_args + mode + self.emcc_args = orig_args + mode + ['-msse'] self.do_run(open(path_from_root('tests', 'test_sse1.cpp'), 'r').read(), 'Success!') # Tests the full SSE1 API.