From 5f7d2636e926e0061e4f07dfd5c864d32a7f6144 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Wed, 28 Oct 2020 09:05:03 -0700 Subject: 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. --- src/wasm-binary.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/wasm-binary.h') 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, -- cgit v1.2.3