diff options
author | Brendan Dahl <brendan.dahl@gmail.com> | 2024-08-08 10:22:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 10:22:51 -0700 |
commit | d945aa489a1ad62c130e04ceea8492c7a728ab57 (patch) | |
tree | 04e529f11ed8b2dfe9d98f84d25f7bef05f158b0 /src/wasm-interpreter.h | |
parent | c9fd92c25a74a70c9730f1b39b49ef3d91a1a7f1 (diff) | |
download | binaryen-d945aa489a1ad62c130e04ceea8492c7a728ab57.tar.gz binaryen-d945aa489a1ad62c130e04ceea8492c7a728ab57.tar.bz2 binaryen-d945aa489a1ad62c130e04ceea8492c7a728ab57.zip |
[FP16] Implement lane access instructions. (#6821)
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index 3e62d5335..f59a005b6 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -479,6 +479,8 @@ public: return value.splatI32x4(); case SplatVecI64x2: return value.splatI64x2(); + case SplatVecF16x8: + return value.splatF16x8(); case SplatVecF32x4: return value.splatF32x4(); case SplatVecF64x2: @@ -1070,6 +1072,8 @@ public: return vec.extractLaneI32x4(curr->index); case ExtractLaneVecI64x2: return vec.extractLaneI64x2(curr->index); + case ExtractLaneVecF16x8: + return vec.extractLaneF16x8(curr->index); case ExtractLaneVecF32x4: return vec.extractLaneF32x4(curr->index); case ExtractLaneVecF64x2: @@ -1098,6 +1102,8 @@ public: return vec.replaceLaneI32x4(value, curr->index); case ReplaceLaneVecI64x2: return vec.replaceLaneI64x2(value, curr->index); + case ReplaceLaneVecF16x8: + return vec.replaceLaneF16x8(value, curr->index); case ReplaceLaneVecF32x4: return vec.replaceLaneF32x4(value, curr->index); case ReplaceLaneVecF64x2: |