From a997567fc2687face0f8ff78da01b76d633a605a Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 9 Jan 2024 16:52:18 -0800 Subject: [PATCH] Enable sse tests under wasm64. NFC (#21051) --- test/test_core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_core.py b/test/test_core.py index 795293e2f6f57..b92cc592834a9 100644 --- a/test/test_core.py +++ b/test/test_core.py @@ -6521,12 +6521,13 @@ def test_sse1(self): # Tests invoking the SIMD API via x86 SSE2 emmintrin.h header (_mm_x() functions) @wasm_simd @requires_native_clang - @no_wasm64('https://github.com/llvm/llvm-project/issues/57577') @no_safe_heap('has unaligned 64-bit operations in wasm') @is_slow_test @no_ubsan('https://github.com/emscripten-core/emscripten/issues/19688') @no_asan('local count too large') def test_sse2(self): + if self.is_wasm64(): + self.require_node_canary() src = test_file('sse/test_sse2.cpp') self.run_process([shared.CLANG_CXX, src, '-msse2', '-Wno-argument-outside-range', '-o', 'test_sse2', '-D_CRT_SECURE_NO_WARNINGS=1'] + clang_native.get_clang_native_args(), stdout=PIPE) native_result = self.run_process('./test_sse2', stdout=PIPE).stdout @@ -6548,7 +6549,6 @@ def test_sse3(self): self.do_runf(src, native_result) # Tests invoking the SIMD API via x86 SSSE3 tmmintrin.h header (_mm_x() functions) - @no_wasm64('https://github.com/llvm/llvm-project/issues/57577') @wasm_simd @requires_native_clang def test_ssse3(self): @@ -6561,12 +6561,13 @@ def test_ssse3(self): self.do_runf(src, native_result) # Tests invoking the SIMD API via x86 SSE4.1 smmintrin.h header (_mm_x() functions) - @no_wasm64('https://github.com/llvm/llvm-project/issues/57577') @no_ubsan('https://github.com/emscripten-core/emscripten/issues/19749') @wasm_simd @requires_native_clang @is_slow_test def test_sse4_1(self): + if self.is_wasm64(): + self.require_node_canary() src = test_file('sse/test_sse4_1.cpp') if not self.is_optimizing() and '-fsanitize=address' in self.emcc_args: # ASan with -O0 fails with: