diff options
author | Brendan Dahl <brendan.dahl@gmail.com> | 2024-08-27 11:14:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 11:14:54 -0700 |
commit | 6c2d0e20906248ab8f8365702b35fd67db29c44f (patch) | |
tree | 17bdd816e894b7872b90e4a81262e3adb65de1af /src/ir/cost.h | |
parent | 459bc0797f67cb2a8fd4598bb7143b34036608d9 (diff) | |
download | binaryen-6c2d0e20906248ab8f8365702b35fd67db29c44f.tar.gz binaryen-6c2d0e20906248ab8f8365702b35fd67db29c44f.tar.bz2 binaryen-6c2d0e20906248ab8f8365702b35fd67db29c44f.zip |
[FP16] Implement unary operations. (#6867)
Specified at
https://github.com/WebAssembly/half-precision/blob/main/proposals/half-precision/Overview.md
Diffstat (limited to 'src/ir/cost.h')
-rw-r--r-- | src/ir/cost.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ir/cost.h b/src/ir/cost.h index 0b2b6315b..f541a4506 100644 --- a/src/ir/cost.h +++ b/src/ir/cost.h @@ -206,6 +206,13 @@ struct CostAnalyzer : public OverriddenVisitor<CostAnalyzer, CostType> { case NegVecI64x2: case AllTrueVecI64x2: case BitmaskVecI64x2: + case AbsVecF16x8: + case NegVecF16x8: + case SqrtVecF16x8: + case CeilVecF16x8: + case FloorVecF16x8: + case TruncVecF16x8: + case NearestVecF16x8: case AbsVecF32x4: case NegVecF32x4: case SqrtVecF32x4: |