summaryrefslogtreecommitdiff
path: root/src/js/binaryen.js-post.js
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-05-19 10:17:07 -0700
committerGitHub <noreply@github.com>2020-05-19 10:17:07 -0700
commitfc7346918f8d15ce45639472f00fea5fa8102ff0 (patch)
tree9d6a3e179c69aedbcef4681db2454fe86c65cc3c /src/js/binaryen.js-post.js
parent417ccb54ccbb0776148f51cb2869c122826db6d9 (diff)
downloadbinaryen-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.js4
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);
},