summaryrefslogtreecommitdiff
path: root/src/ir
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir')
-rw-r--r--src/ir/cost.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ir/cost.h b/src/ir/cost.h
index 5fb32f933..9ff5370f7 100644
--- a/src/ir/cost.h
+++ b/src/ir/cost.h
@@ -178,6 +178,14 @@ struct CostAnalyzer : public Visitor<CostAnalyzer, Index> {
case ConvertUVecI32x4ToVecF32x4:
case ConvertSVecI64x2ToVecF64x2:
case ConvertUVecI64x2ToVecF64x2:
+ case WidenLowSVecI8x16ToVecI16x8:
+ case WidenHighSVecI8x16ToVecI16x8:
+ case WidenLowUVecI8x16ToVecI16x8:
+ case WidenHighUVecI8x16ToVecI16x8:
+ case WidenLowSVecI16x8ToVecI32x4:
+ case WidenHighSVecI16x8ToVecI32x4:
+ case WidenLowUVecI16x8ToVecI32x4:
+ case WidenHighUVecI16x8ToVecI32x4:
return 1;
case InvalidUnary:
WASM_UNREACHABLE();
@@ -643,6 +651,18 @@ struct CostAnalyzer : public Visitor<CostAnalyzer, Index> {
case MaxVecF64x2:
ret = 1;
break;
+ case NarrowSVecI16x8ToVecI8x16:
+ ret = 1;
+ break;
+ case NarrowUVecI16x8ToVecI8x16:
+ ret = 1;
+ break;
+ case NarrowSVecI32x4ToVecI16x8:
+ ret = 1;
+ break;
+ case NarrowUVecI32x4ToVecI16x8:
+ ret = 1;
+ break;
case InvalidBinary:
WASM_UNREACHABLE();
}