diff options
author | Brendan Dahl <brendan.dahl@gmail.com> | 2024-08-21 15:03:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-21 22:03:46 +0000 |
commit | 99db0d9c7c33bcea7b7730bb5684f41176146f83 (patch) | |
tree | 3986c87e5533421be50673710d1acc6edba29dda /src/wasm-interpreter.h | |
parent | 21ddb853559bde490b4f02db576d4b8cd48d3106 (diff) | |
download | binaryen-99db0d9c7c33bcea7b7730bb5684f41176146f83.tar.gz binaryen-99db0d9c7c33bcea7b7730bb5684f41176146f83.tar.bz2 binaryen-99db0d9c7c33bcea7b7730bb5684f41176146f83.zip |
[FP16] Implement arithmetic operations. (#6855)
Specified at
https://github.com/WebAssembly/half-precision/blob/main/proposals/half-precision/Overview.md
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r-- | src/wasm-interpreter.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index cbd2b31d6..81b755f9f 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -1014,6 +1014,23 @@ public: case ExtMulHighUVecI64x2: return left.extMulHighUI64x2(right); + case AddVecF16x8: + return left.addF16x8(right); + case SubVecF16x8: + return left.subF16x8(right); + case MulVecF16x8: + return left.mulF16x8(right); + case DivVecF16x8: + return left.divF16x8(right); + case MinVecF16x8: + return left.minF16x8(right); + case MaxVecF16x8: + return left.maxF16x8(right); + case PMinVecF16x8: + return left.pminF16x8(right); + case PMaxVecF16x8: + return left.pmaxF16x8(right); + case AddVecF32x4: return left.addF32x4(right); case SubVecF32x4: |