summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
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 /src/passes/Print.cpp
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 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 6350347c4..4986982c7 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -1901,6 +1901,31 @@ struct PrintExpressionContents
o << "i64x2.extmul_high_i32x4_u";
break;
+ case AddVecF16x8:
+ o << "f16x8.add";
+ break;
+ case SubVecF16x8:
+ o << "f16x8.sub";
+ break;
+ case MulVecF16x8:
+ o << "f16x8.mul";
+ break;
+ case DivVecF16x8:
+ o << "f16x8.div";
+ break;
+ case MinVecF16x8:
+ o << "f16x8.min";
+ break;
+ case MaxVecF16x8:
+ o << "f16x8.max";
+ break;
+ case PMinVecF16x8:
+ o << "f16x8.pmin";
+ break;
+ case PMaxVecF16x8:
+ o << "f16x8.pmax";
+ break;
+
case AddVecF32x4:
o << "f32x4.add";
break;