diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2021-01-19 19:32:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 16:32:10 -0800 |
commit | a4d1b53ff3374a5d7843b0a879a7908334d5bb46 (patch) | |
tree | 6bc7c3fd1ca8850f5fbba27ee850b98343306656 /src/ir/cost.h | |
parent | 0f212dfc69306688afa5057e3179aed5af3edc85 (diff) | |
download | binaryen-a4d1b53ff3374a5d7843b0a879a7908334d5bb46.tar.gz binaryen-a4d1b53ff3374a5d7843b0a879a7908334d5bb46.tar.bz2 binaryen-a4d1b53ff3374a5d7843b0a879a7908334d5bb46.zip |
Prototype additional f64x2 conversions (#3501)
As proposed in https://github.com/WebAssembly/simd/pull/383, with opcodes
coordinated with the WIP V8 prototype.
Diffstat (limited to 'src/ir/cost.h')
-rw-r--r-- | src/ir/cost.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ir/cost.h b/src/ir/cost.h index 4424f2e00..7f8e39e1b 100644 --- a/src/ir/cost.h +++ b/src/ir/cost.h @@ -228,6 +228,12 @@ struct CostAnalyzer : public OverriddenVisitor<CostAnalyzer, Index> { case WidenHighSVecI32x4ToVecI64x2: case WidenLowUVecI32x4ToVecI64x2: case WidenHighUVecI32x4ToVecI64x2: + case ConvertLowSVecI32x4ToVecF64x2: + case ConvertLowUVecI32x4ToVecF64x2: + case TruncSatZeroSVecF64x2ToVecI32x4: + case TruncSatZeroUVecF64x2ToVecI32x4: + case DemoteZeroVecF64x2ToVecF32x4: + case PromoteLowVecF32x4ToVecF64x2: ret = 1; break; case InvalidUnary: |