From fc7346918f8d15ce45639472f00fea5fa8102ff0 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Tue, 19 May 2020 10:17:07 -0700 Subject: Implement i64x2.mul (#2860) This is the only instruction in the current spec proposal that had not yet been implemnented in the tools. --- src/js/binaryen.js-post.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/js/binaryen.js-post.js') diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js index 993f8c129..1902bddfa 100644 --- a/src/js/binaryen.js-post.js +++ b/src/js/binaryen.js-post.js @@ -410,6 +410,7 @@ function initializeConstants() { 'ShrUVecI64x2', 'AddVecI64x2', 'SubVecI64x2', + 'MulVecI64x2', 'AbsVecF32x4', 'NegVecF32x4', 'SqrtVecF32x4', @@ -1833,6 +1834,9 @@ function wrapModule(module, self) { 'sub': function(left, right) { return Module['_BinaryenBinary'](module, Module['SubVecI64x2'], left, right); }, + 'mul': function(left, right) { + return Module['_BinaryenBinary'](module, Module['MulVecI64x2'], left, right); + }, 'trunc_sat_f64x2_s': function(value) { return Module['_BinaryenUnary'](module, Module['TruncSatSVecF64x2ToVecI64x2'], value); }, -- cgit v1.2.3