summaryrefslogtreecommitdiff
path: root/scripts
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 /scripts
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 'scripts')
-rwxr-xr-xscripts/gen-s-parser.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py
index f9ff903fc..ae19596d5 100755
--- a/scripts/gen-s-parser.py
+++ b/scripts/gen-s-parser.py
@@ -516,6 +516,13 @@ instructions = [
("i16x8.extadd_pairwise_i8x16_u", "makeUnary(s, UnaryOp::ExtAddPairwiseUVecI8x16ToI16x8)"),
("i32x4.extadd_pairwise_i16x8_s", "makeUnary(s, UnaryOp::ExtAddPairwiseSVecI16x8ToI32x4)"),
("i32x4.extadd_pairwise_i16x8_u", "makeUnary(s, UnaryOp::ExtAddPairwiseUVecI16x8ToI32x4)"),
+ ("f64x2.convert_low_i32x4_s", "makeUnary(s, UnaryOp::ConvertLowSVecI32x4ToVecF64x2)"),
+ ("f64x2.convert_low_i32x4_u", "makeUnary(s, UnaryOp::ConvertLowUVecI32x4ToVecF64x2)"),
+ ("i32x4.trunc_sat_f64x2_zero_s", "makeUnary(s, UnaryOp::TruncSatZeroSVecF64x2ToVecI32x4)"),
+ ("i32x4.trunc_sat_f64x2_zero_u", "makeUnary(s, UnaryOp::TruncSatZeroUVecF64x2ToVecI32x4)"),
+ ("f32x4.demote_f64x2_zero", "makeUnary(s, UnaryOp::DemoteZeroVecF64x2ToVecF32x4)"),
+ ("f64x2.promote_low_f32x4", "makeUnary(s, UnaryOp::PromoteLowVecF32x4ToVecF64x2)"),
+
# prefetch instructions
("prefetch.t", "makePrefetch(s, PrefetchOp::PrefetchTemporal)"),
("prefetch.nt", "makePrefetch(s, PrefetchOp::PrefetchNontemporal)"),