summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBrendan Dahl <brendan.dahl@gmail.com>2024-08-21 15:03:46 -0700
committerGitHub <noreply@github.com>2024-08-21 22:03:46 +0000
commit99db0d9c7c33bcea7b7730bb5684f41176146f83 (patch)
tree3986c87e5533421be50673710d1acc6edba29dda /scripts
parent21ddb853559bde490b4f02db576d4b8cd48d3106 (diff)
downloadbinaryen-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 'scripts')
-rwxr-xr-xscripts/gen-s-parser.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py
index 86826ad79..39d621f48 100755
--- a/scripts/gen-s-parser.py
+++ b/scripts/gen-s-parser.py
@@ -452,6 +452,14 @@ instructions = [
("i64x2.extmul_high_i32x4_s", "makeBinary(BinaryOp::ExtMulHighSVecI64x2)"),
("i64x2.extmul_low_i32x4_u", "makeBinary(BinaryOp::ExtMulLowUVecI64x2)"),
("i64x2.extmul_high_i32x4_u", "makeBinary(BinaryOp::ExtMulHighUVecI64x2)"),
+ ("f16x8.add", "makeBinary(BinaryOp::AddVecF16x8)"),
+ ("f16x8.sub", "makeBinary(BinaryOp::SubVecF16x8)"),
+ ("f16x8.mul", "makeBinary(BinaryOp::MulVecF16x8)"),
+ ("f16x8.div", "makeBinary(BinaryOp::DivVecF16x8)"),
+ ("f16x8.min", "makeBinary(BinaryOp::MinVecF16x8)"),
+ ("f16x8.max", "makeBinary(BinaryOp::MaxVecF16x8)"),
+ ("f16x8.pmin", "makeBinary(BinaryOp::PMinVecF16x8)"),
+ ("f16x8.pmax", "makeBinary(BinaryOp::PMaxVecF16x8)"),
("f32x4.abs", "makeUnary(UnaryOp::AbsVecF32x4)"),
("f32x4.neg", "makeUnary(UnaryOp::NegVecF32x4)"),
("f32x4.sqrt", "makeUnary(UnaryOp::SqrtVecF32x4)"),