summaryrefslogtreecommitdiff
path: root/scripts/gen-s-parser.py
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-10-27 08:58:36 -0700
committerGitHub <noreply@github.com>2020-10-27 08:58:36 -0700
commitca16f7cdc57549333474d7042128d2007bc35fad (patch)
treec42bffa8027099b9d4f5cb6c2283571bd06950c5 /scripts/gen-s-parser.py
parent91ac3be4364e6f9763d6ccff35c83fab0692ef5c (diff)
downloadbinaryen-ca16f7cdc57549333474d7042128d2007bc35fad.tar.gz
binaryen-ca16f7cdc57549333474d7042128d2007bc35fad.tar.bz2
binaryen-ca16f7cdc57549333474d7042128d2007bc35fad.zip
Implement i8x16.popcnt (#3286)
As proposed in https://github.com/WebAssembly/simd/pull/379. Since this instruction is still being evaluated for inclusion in the SIMD proposal, this PR does not add support for it to the C/JS APIs or to the fuzzer. This PR also performs a drive-by fix for unrelated instructions in c-api-kitchen-sink.c
Diffstat (limited to 'scripts/gen-s-parser.py')
-rwxr-xr-xscripts/gen-s-parser.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py
index 7fd3d1ec6..358f3f0b1 100755
--- a/scripts/gen-s-parser.py
+++ b/scripts/gen-s-parser.py
@@ -358,6 +358,7 @@ instructions = [
("v128.store16_lane", "makeSIMDLoadStoreLane(s, StoreLaneVec16x8)"),
("v128.store32_lane", "makeSIMDLoadStoreLane(s, StoreLaneVec32x4)"),
("v128.store64_lane", "makeSIMDLoadStoreLane(s, StoreLaneVec64x2)"),
+ ("i8x16.popcnt", "makeUnary(s, UnaryOp::PopcntVecI8x16)"),
("i8x16.abs", "makeUnary(s, UnaryOp::AbsVecI8x16)"),
("i8x16.neg", "makeUnary(s, UnaryOp::NegVecI8x16)"),
("i8x16.any_true", "makeUnary(s, UnaryOp::AnyTrueVecI8x16)"),