diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-05-19 10:17:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 10:17:07 -0700 |
commit | fc7346918f8d15ce45639472f00fea5fa8102ff0 (patch) | |
tree | 9d6a3e179c69aedbcef4681db2454fe86c65cc3c /src/js/binaryen.js-post.js | |
parent | 417ccb54ccbb0776148f51cb2869c122826db6d9 (diff) | |
download | binaryen-fc7346918f8d15ce45639472f00fea5fa8102ff0.tar.gz binaryen-fc7346918f8d15ce45639472f00fea5fa8102ff0.tar.bz2 binaryen-fc7346918f8d15ce45639472f00fea5fa8102ff0.zip |
Implement i64x2.mul (#2860)
This is the only instruction in the current spec proposal that had not
yet been implemnented in the tools.
Diffstat (limited to 'src/js/binaryen.js-post.js')
-rw-r--r-- | src/js/binaryen.js-post.js | 4 |
1 files changed, 4 insertions, 0 deletions
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); }, |