summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-10-28 09:05:03 -0700
committerGitHub <noreply@github.com>2020-10-28 09:05:03 -0700
commit5f7d2636e926e0061e4f07dfd5c864d32a7f6144 (patch)
treed4b718103203ea8056f645e19b04d1dd939552e2 /src/wasm-binary.h
parent8fd93ee74150a8783c5118ea9804b508fe67701f (diff)
downloadbinaryen-5f7d2636e926e0061e4f07dfd5c864d32a7f6144.tar.gz
binaryen-5f7d2636e926e0061e4f07dfd5c864d32a7f6144.tar.bz2
binaryen-5f7d2636e926e0061e4f07dfd5c864d32a7f6144.zip
Prototype new SIMD multiplications (#3291)
Including saturating, rounding Q15 multiplication as proposed in https://github.com/WebAssembly/simd/pull/365 and extending multiplications as proposed in https://github.com/WebAssembly/simd/pull/376. Since these are just prototypes, skips adding them to the C or JS APIs and the fuzzer, as well as implementing them in the interpreter.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index e1247a2d4..8d7abfd70 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -851,6 +851,7 @@ enum ASTNodes {
I16x8MaxS = 0x98,
I16x8MaxU = 0x99,
I16x8AvgrU = 0x9b,
+ I16x8Q15MulrSatS = 0x9c,
I32x4Abs = 0xa0,
I32x4Neg = 0xa1,
@@ -934,6 +935,19 @@ enum ASTNodes {
F64x2ConvertSI64x2 = 0x0102,
F64x2ConvertUI64x2 = 0x0103,
+ I16x8ExtMulLowSI8x16 = 0x9a,
+ I16x8ExtMulHighSI8x16 = 0x9d,
+ I16x8ExtMulLowUI8x16 = 0x9e,
+ I16x8ExtMulHighUI8x16 = 0x9f,
+ I32x4ExtMulLowSI16x8 = 0xbb,
+ I32x4ExtMulHighSI16x8 = 0xbd,
+ I32x4ExtMulLowUI16x8 = 0xbe,
+ I32x4ExtMulHighUI16x8 = 0xbf,
+ I64x2ExtMulLowSI32x4 = 0xd2,
+ I64x2ExtMulHighSI32x4 = 0xd3,
+ I64x2ExtMulLowUI32x4 = 0xd6,
+ I64x2ExtMulHighUI32x4 = 0xd7,
+
// bulk memory opcodes
MemoryInit = 0x08,