Open CryZe opened 7 years ago
Yes, wasm doesn't have simd yet, so that isn't expected to work.
How are you generating that code? I'm not sure which clang/opt flags you need, but if you use emcc, it should pass those to those tools for you. You can run it with EMCC_DEBUG=1
in the env to see what flags it passes.
Is the error here on rustc's side, where we are emitting simd IR to a platform that doesn't support it?
That seems likely, but I didn't dig too deep into this back when I was getting these errors a lot.
When it encounters a SIMD instruction it fails to compile the asm.js code to wasm:
The asm.js line looks like this:
If this is not intended to work yet, what can I do to prevent emscripten from generating vector instructions then?
-fno-vectorize -s SIMD=0
and the following llvm-args-disable-loop-vectorization -disable-slp-vectorization -vectorize-loops=false -vectorize-slp=false -vectorize-slp-aggressive=false
didn't do anything.