Yes, it looks like you're using the old fastcomp backend, but SIMD and other post-MVP WebAssembly features are only supported with the new LLVM backend. If you're using the emsdk, you can try installing and activating the `latest-upstream` tag instead of just `latest`.
On Wed, Aug 7, 2019 at 1:34 PM Jonathan Esteban <[email protected]> wrote: > Okay, so I'll try replacing the intrinsics we are using with the ones > WebAssembly supports. I swapped #include <emmintrin.h> with #include > <wasm_simd128.h> > > and added the flag -msimd128 > > so now I'm running: > > em++ -msimd128 -g -I src/lib/ -I boost src/lib/pke/multiparty.cpp -v > > > > But I'm getting the following errors: > In file included from src/lib/pke/multiparty.cpp:7: > > In file included from src/lib/pke/multiparty.h:10: > > In file included from src/lib/Common/Defines.h:9: > > /home/jonathanesteban/emsdk/fastcomp/emscripten/system/include/wasm_simd128.h:482:18: > error: use of undeclared > identifier '__builtin_wasm_bitselect' > > return (v128_t)__builtin_wasm_bitselect((__i32x4)a, (__i32x4)b, > (__i32x4)mask); > ^ > > /home/jonathanesteban/emsdk/fastcomp/emscripten/system/include/wasm_simd128.h:492:10: > error: use of undeclared > identifier '__builtin_wasm_any_true_i8x16' > > return __builtin_wasm_any_true_i8x16((__i8x16)a); > Any idea of why this is happening? > > Thanks > > On Wednesday, August 7, 2019 at 4:03:12 PM UTC-4, Thomas Lively wrote: >> >> That's right. Those particular intrinsics are specific to x86 platforms. >> You can use the WebAssembly SIMD intrinsics from >> https://github.com/emscripten-core/emscripten/blob/incoming/system/include/wasm_simd128.h >> instead, >> though. >> > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/f5c1f2cd-df01-4292-835b-3bcb8121a027%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/f5c1f2cd-df01-4292-835b-3bcb8121a027%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAJZD_EXUdVzb0duUe-rXxMR19iKdxgsK%3DPk8AmGyHuA%2BAMu4RA%40mail.gmail.com.
