Skip to content

Commit

Permalink
Enable test_sse1 to run.
Browse files Browse the repository at this point in the history
  • Loading branch information
juj committed Aug 15, 2015
1 parent dc66d5b commit a41d264
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5540,12 +5540,13 @@ def test():
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.
Expand Down

0 comments on commit a41d264

Please sign in to comment.