I build simd.cc :

#include <wasm_simd128.h>
int fun(v128_t a,v128_t b) {
  v128_t prod = wasm_i32x4_add(a, b);
  return prod[0];
}
int main() {
  v128_t a = {1,2,3,4};
  v128_t b = {5,4,6,8};
  return fun(a,b);
}

Build it:
emcc -msimd128 -O3 foo.c -o foo.js

And run 
./arm64.debug/d8 ./foo.js  --experimental-wasm-simd --print-code

But i don't find any Neon instr in code that be printed by v8?
I remeber it can work on January 2021.

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" 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/v8-dev/c83f6f9b-2beb-4d6c-9d8a-c301da13642bn%40googlegroups.com.

Reply via email to