Yes, the SSE headers were removed from emscripten because they could not actually increase performance, so it was nearly always a bad idea to be using them. No JS engine in use today supports SIMD.js natively and polyfilling SIMD code is slower than simply recompiling an application to not use SIMD in the first place. In other words, using a SIMD-optimized library with emscripten will actually be slower than using a library that is not SIMD-optimized (or at least a non-SIMD build of the same library).
WebAssembly SIMD will of course fix this so that using SIMD can have performance benefits. Emscripten actually does support WebAssembly SIMD when using the LLVM backend, but it is very bleeding edge and there are still a few bugs. And because the WebAssembly SIMD proposal is still in an early stage, the instructions it contains are subject to change. As for the error you are seeing, it is telling you that Fastcomp does not support 2 x i64 vectors. Unfortunately Fastcomp does not know how to lower unsupported vector types into supported vector types, although the LLVM backend does. Until SIMD stabilizes in the LLVM backend and ships on JS engines, the best way around this error is going to be to remove all uses of 2 x i64 vectors (and 2 x f64 vectors) from your code. On Wed, Apr 17, 2019 at 8:27 AM Flix <[email protected]> wrote: > Hi everybody, > I using emscripten version 1.38.30. > > I've noticed that the SIMD headers are missing from that distributions > (and beside that, WebAssembly SIMD is probably not working with emscripten). > > I wanted to compile the demo in the: https://github.com/rasmusbarr/nudge > using emscripten, and since it requires SIMD, I'm using this library: > https://github.com/nemequ/simde to emulate it (you can read further info > about the steps I took at the end of this thread: > https://github.com/nemequ/simde/issues/37). > > Result: using desktop gcc the program compiles and run correctly in > SIMD-emulated mode, but emscripten still outputs: > >> Enter code here.LLVM ERROR: Unsupported integer vector type with >> numElems: 2, primitiveSize: 64! >> > > Any idea why this happens ? > Thank you in advance. > > > -- > 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]. > For more options, visit https://groups.google.com/d/optout. > -- 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]. For more options, visit https://groups.google.com/d/optout.
