From ca16f7cdc57549333474d7042128d2007bc35fad Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Tue, 27 Oct 2020 08:58:36 -0700 Subject: 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 --- scripts/gen-s-parser.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/gen-s-parser.py') 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)"), -- cgit v1.2.3