summaryrefslogtreecommitdiff
path: root/src/wasm/literal.cpp
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/wasm/literal.cpp
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/wasm/literal.cpp')
-rw-r--r--src/wasm/literal.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp
index 5ad82acaf..3326adc74 100644
--- a/src/wasm/literal.cpp
+++ b/src/wasm/literal.cpp
@@ -1960,6 +1960,9 @@ Literal Literal::addI64x2(const Literal& other) const {
Literal Literal::subI64x2(const Literal& other) const {
return binary<2, &Literal::getLanesI64x2, &Literal::sub>(*this, other);
}
+Literal Literal::mulI64x2(const Literal& other) const {
+ return binary<2, &Literal::getLanesI64x2, &Literal::mul>(*this, other);
+}
Literal Literal::addF32x4(const Literal& other) const {
return binary<4, &Literal::getLanesF32x4, &Literal::add>(*this, other);
}