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/wasm/literal.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wasm/literal.cpp') 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); } -- cgit v1.2.3