diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-08-03 13:48:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 13:48:10 -0700 |
commit | daa442b40f92ee5117c9c7c391171c3304abc67e (patch) | |
tree | d4533e9f8d3564e20bc6b1c006e74f4b32d3dcca /src/wasm/wasm-binary.cpp | |
parent | 79f2fe4eb4197b3f2a1f8ad0c3a34bf9c28149a1 (diff) | |
download | binaryen-daa442b40f92ee5117c9c7c391171c3304abc67e.tar.gz binaryen-daa442b40f92ee5117c9c7c391171c3304abc67e.tar.bz2 binaryen-daa442b40f92ee5117c9c7c391171c3304abc67e.zip |
Implement prototype v128.load{32,64}_zero instructions (#3011)
Specified in https://github.com/WebAssembly/simd/pull/237. Since these
are just prototypes necessary for benchmarking, this PR does not add
support for these instructions to the fuzzer or the C or JS APIs. This
PR also renumbers the QFMA instructions that previously used the
opcodes for these new instructions. The renumbering matches the
renumbering in V8 and LLVM.
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r-- | src/wasm/wasm-binary.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index bb5d420a9..ddc4de36c 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -4598,6 +4598,14 @@ bool WasmBinaryBuilder::maybeVisitSIMDLoad(Expression*& out, uint32_t code) { curr = allocator.alloc<SIMDLoad>(); curr->op = LoadExtUVec32x2ToVecI64x2; break; + case BinaryConsts::V128Load32Zero: + curr = allocator.alloc<SIMDLoad>(); + curr->op = Load32Zero; + break; + case BinaryConsts::V128Load64Zero: + curr = allocator.alloc<SIMDLoad>(); + curr->op = Load64Zero; + break; default: return false; } |