From 01fe5aaeea74cc25d4052fec0be6d7d03e0faec0 Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Fri, 16 Apr 2021 15:34:57 +1000 Subject: wasm: add simd support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Emscripten only supports SSE1, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, and 128-bit AVX instruction sets at this time. https://emscripten.org/docs/porting/simd.html Browsers might need to enable simd support in the advanced configurations about: config or chrome:flags Enable by configuring Qt with -sse2 Fixes: QTBUG-63924 Change-Id: Ifeafae20e199dee0d19689802ad20fd0bd424ca7 Reviewed-by: Morten Johan Sørvig (cherry picked from commit 0e100a4d892cbdcdb7f326213ec1e4d0d1ae6d89) Reviewed-by: Qt Cherry-pick Bot --- config.tests/arch/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.tests') diff --git a/config.tests/arch/CMakeLists.txt b/config.tests/arch/CMakeLists.txt index 2e11f20674..9ef6e37b3b 100644 --- a/config.tests/arch/CMakeLists.txt +++ b/config.tests/arch/CMakeLists.txt @@ -4,3 +4,7 @@ project(arch LANGUAGES CXX) add_executable(architecture_test) set_property(TARGET architecture_test PROPERTY MACOSX_BUNDLE FALSE) target_sources(architecture_test PRIVATE arch.cpp) + +if(EMSCRIPTEN) + target_compile_options(architecture_test PRIVATE -O2 -msimd128 -msse -msse2) +endif() -- cgit v1.2.3