diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2022-04-07 08:49:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 08:49:52 -0700 |
commit | 094deb0b1d1def452cb784191004a5e2001c6a99 (patch) | |
tree | b867b5883f708dd57b89b1e92086172490e8f0b5 /src/wasm/wasm-binary.cpp | |
parent | fb2754fec942e49fcd2e3ec30f9aac5825a2c758 (diff) | |
download | binaryen-094deb0b1d1def452cb784191004a5e2001c6a99.tar.gz binaryen-094deb0b1d1def452cb784191004a5e2001c6a99.tar.bz2 binaryen-094deb0b1d1def452cb784191004a5e2001c6a99.zip |
Implement i16x8.relaxed_q15mulr_s (#4583)
As proposed in https://github.com/WebAssembly/relaxed-simd/issues/40.
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r-- | src/wasm/wasm-binary.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index b67fe013b..097ce2ae1 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -5397,7 +5397,7 @@ bool WasmBinaryBuilder::maybeVisitSIMDBinary(Expression*& out, uint32_t code) { curr = allocator.alloc<Binary>(); curr->op = AvgrUVecI16x8; break; - case BinaryConsts::I16x8Q15mulrSatS: + case BinaryConsts::I16x8Q15MulrSatS: curr = allocator.alloc<Binary>(); curr->op = Q15MulrSatSVecI16x8; break; @@ -5597,6 +5597,10 @@ bool WasmBinaryBuilder::maybeVisitSIMDBinary(Expression*& out, uint32_t code) { curr = allocator.alloc<Binary>(); curr->op = RelaxedMaxVecF64x2; break; + case BinaryConsts::I16x8RelaxedQ15MulrS: + curr = allocator.alloc<Binary>(); + curr->op = RelaxedQ15MulrSVecI16x8; + break; default: return false; } |