summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
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/passes/Print.cpp
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/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index b6da29861..0696ea4ec 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -1080,6 +1080,24 @@ struct PrintExpressionContents
case WidenHighUVecI32x4ToVecI64x2:
o << "i64x2.widen_high_i32x4_u";
break;
+ case ConvertLowSVecI32x4ToVecF64x2:
+ o << "f64x2.convert_low_i32x4_s";
+ break;
+ case ConvertLowUVecI32x4ToVecF64x2:
+ o << "f64x2.convert_low_i32x4_u";
+ break;
+ case TruncSatZeroSVecF64x2ToVecI32x4:
+ o << "i32x4.trunc_sat_f64x2_zero_s";
+ break;
+ case TruncSatZeroUVecF64x2ToVecI32x4:
+ o << "i32x4.trunc_sat_f64x2_zero_u";
+ break;
+ case DemoteZeroVecF64x2ToVecF32x4:
+ o << "f32x4.demote_f64x2_zero";
+ break;
+ case PromoteLowVecF32x4ToVecF64x2:
+ o << "f64x2.promote_low_f32x4";
+ break;
case InvalidUnary:
WASM_UNREACHABLE("unvalid unary operator");
}