Skip to content

Commit

Permalink
Add no-opt test.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandahl committed Sep 11, 2024
1 parent 5e37239 commit 06dc320
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -15143,11 +15143,13 @@ def test_fs_writev_partial_write(self):
self.do_run_in_out_file_test('fs/test_writev_partial_write.c')

@requires_v8
def test_fp16(self):
@parameterized({
'': [[]],
'O2': [['-O2']]
})
def test_fp16(self, opts):
self.v8_args += ['--experimental-wasm-fp16']
# TODO Remove this. Liftoff is currently broken for this test.
self.v8_args += ['--no-liftoff']
# TODO Test this in a different optimization mode. Only O2 currently works.
self.emcc_args = ['-msimd128', '-mfp16', '-sENVIRONMENT=shell']
# self.emcc_args += [ '-O2']
self.emcc_args = ['-msimd128', '-mfp16', '-sENVIRONMENT=shell'] + opts
self.do_runf('test_fp16.c')

0 comments on commit 06dc320

Please sign in to comment.