From daf0782b7754e225c9063f9fbf5195b4b4a3c7e3 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Thu, 22 Oct 2020 21:47:17 -0700 Subject: Implement v128.{load,store}{8,16,32,64}_lane instructions (#3278) These instructions are proposed in https://github.com/WebAssembly/simd/pull/350. This PR implements them throughout Binaryen except in the C/JS APIs and in the fuzzer, where it leaves TODOs instead. Right now these instructions are just being implemented for prototyping so adding them to the APIs isn't critical and they aren't generally available to be fuzzed in Wasm engines. --- src/wasm-binary.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/wasm-binary.h') diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 8c502d6b7..1faf30716 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -791,6 +791,15 @@ enum ASTNodes { V128Xor = 0x51, V128Bitselect = 0x52, + V128Load8Lane = 0x58, + V128Load16Lane = 0x59, + V128Load32Lane = 0x5a, + V128Load64Lane = 0x5b, + V128Store8Lane = 0x5c, + V128Store16Lane = 0x5d, + V128Store32Lane = 0x5e, + V128Store64Lane = 0x5f, + I8x16Abs = 0x60, I8x16Neg = 0x61, I8x16AnyTrue = 0x62, @@ -1486,6 +1495,7 @@ public: bool maybeVisitSIMDTernary(Expression*& out, uint32_t code); bool maybeVisitSIMDShift(Expression*& out, uint32_t code); bool maybeVisitSIMDLoad(Expression*& out, uint32_t code); + bool maybeVisitSIMDLoadStoreLane(Expression*& out, uint32_t code); bool maybeVisitMemoryInit(Expression*& out, uint32_t code); bool maybeVisitDataDrop(Expression*& out, uint32_t code); bool maybeVisitMemoryCopy(Expression*& out, uint32_t code); -- cgit v1.2.3