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/wasm/literal.cpp | |
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/wasm/literal.cpp')
-rw-r--r-- | src/wasm/literal.cpp | 3 |
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); } |