Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions test/core/test_getgep.c

This file was deleted.

1 change: 0 additions & 1 deletion test/core/test_getgep.out

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 3 additions & 19 deletions test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,42 +760,26 @@ def test_zero_multiplication(self):
def test_isnan(self):
self.do_core_test('test_isnan.c')

@only_wasm2js('tests globals in static data')
def test_globaldoubles(self):
self.do_core_test('test_globaldoubles.c')

def test_math(self):
self.do_core_test('test_math.c')

def test_erf(self):
self.do_core_test('test_erf.c')

def test_math_hyperbolic(self):
self.do_core_test('test_math_hyperbolic.c')

@only_wasm2js('tests lgamma and signbit')
def test_math_lgamma(self):
self.do_run_in_out_file_test('math/lgamma.c', assert_returncode=NON_ZERO)

@only_wasm2js('tests fmodf (which may use JS math)')
def test_math_fmodf(self):
self.do_run_in_out_file_test('math/fmodf.c')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these tests also be moved in other and run in wasm2js mode? Or do they benefit from being runing at different opt levels of wasm2js?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these benefit from multiple opt levels, yeah. If we lower fmodf into JS % then the optimizer might do things with that. (However I don't think we actually do so, but it would be nice to someday.)


def test_frexp(self):
self.do_core_test('test_frexp.c')

def test_rounding(self):
# needs to flush stdio streams
self.set_setting('EXIT_RUNTIME')
self.do_core_test('test_rounding.c')

def test_fcvt(self):
self.do_core_test('test_fcvt.cpp')

def test_llrint(self):
self.do_core_test('test_llrint.c')

def test_getgep(self):
# Generated code includes getelementptr (getelementptr, 0, 1), i.e., GEP as the first param to GEP
self.do_core_test('test_getgep.c')

def test_multiply_defined_symbols(self):
create_file('a1.c', 'int f() { return 1; }')
create_file('a2.c', 'void x() {}')
Expand Down
15 changes: 15 additions & 0 deletions test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -14245,3 +14245,18 @@ def test_force_filesystem_error(self):
def test_aligned_alloc(self):
self.do_runf('test_aligned_alloc.c', '',
emcc_args=['-Wno-non-power-of-two-alignment'])

def test_erf(self):
self.do_other_test('test_erf.c')

def test_math_hyperbolic(self):
self.do_other_test('test_math_hyperbolic.c')

def test_frexp(self):
self.do_other_test('test_frexp.c')

def test_fcvt(self):
self.do_other_test('test_fcvt.cpp')

def test_llrint(self):
self.do_other_test('test_llrint.c')