diff --git a/scripts/test/shared.py b/scripts/test/shared.py index 72b64c762ad..3d36fb35fa1 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -443,15 +443,6 @@ def get_tests(test_dir, extensions=[], recursive=False): 'token.wast', # Lexer should require spaces between strings and non-paren tokens ] -if get_platform() == 'linux': - SPEC_TESTSUITE_TESTS_TO_SKIP += [ - # Errors on Linux x86_64 with musl, https://github.com/WebAssembly/binaryen/pull/8557 - 'f32.wast', - 'f64.wast', - 'simd_f32x4_rounding.wast', - 'simd_f64x2_rounding.wast', - ] - def _can_run_spec_test(test): test = Path(test) diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp index 62e16e6b504..5c2a114af75 100644 --- a/src/wasm/literal.cpp +++ b/src/wasm/literal.cpp @@ -1142,9 +1142,9 @@ Literal Literal::trunc() const { Literal Literal::nearbyint() const { switch (type.getBasic()) { case Type::f32: - return Literal(std::nearbyint(getf32())); + return standardizeNaN(Literal(std::nearbyint(getf32()))); case Type::f64: - return Literal(std::nearbyint(getf64())); + return standardizeNaN(Literal(std::nearbyint(getf64()))); default: WASM_UNREACHABLE("unexpected type"); }