summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2021-07-13 13:44:01 -0700
committerGitHub <noreply@github.com>2021-07-13 20:44:01 +0000
commitaafd1bf1be09d6368127f9878ab1779cc258f526 (patch)
tree85f9565e7dcacff3d67bc45545fa906c31f19db1 /src/wasm-interpreter.h
parentb217effd56b644c08f6ce4b86533c133b564af6d (diff)
downloadbinaryen-aafd1bf1be09d6368127f9878ab1779cc258f526.tar.gz
binaryen-aafd1bf1be09d6368127f9878ab1779cc258f526.tar.bz2
binaryen-aafd1bf1be09d6368127f9878ab1779cc258f526.zip
Implement interpretation of i64x2.bitmask (#3982)
Like a few other SIMD operations, this i64x2.bitmask had not been implemented in the interpreter yet. Unlike the others, i64x2.bitmask has type i32 rather than type v128, so Precompute was not skipping it, leading to a crash, as in https://github.com/emscripten-core/emscripten/issues/14629. Fix the problem by implementing i64x2.bitmask in the interpreter.
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index 77b055fd1..8870e24dd 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -500,7 +500,7 @@ public:
case AllTrueVecI64x2:
return value.allTrueI64x2();
case BitmaskVecI64x2:
- WASM_UNREACHABLE("unimp");
+ return value.bitmaskI64x2();
case AbsVecF32x4:
return value.absF32x4();
case NegVecF32x4: