summaryrefslogtreecommitdiff
path: root/src/ir/cost.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2021-01-19 19:32:10 -0500
committerGitHub <noreply@github.com>2021-01-19 16:32:10 -0800
commita4d1b53ff3374a5d7843b0a879a7908334d5bb46 (patch)
tree6bc7c3fd1ca8850f5fbba27ee850b98343306656 /src/ir/cost.h
parent0f212dfc69306688afa5057e3179aed5af3edc85 (diff)
downloadbinaryen-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.h6
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: