summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-validator.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-10-03 18:07:02 -0700
committerGitHub <noreply@github.com>2019-10-03 18:07:02 -0700
commit3c78269032071490bc13dc5dbac02567d4d491e0 (patch)
treea00c874c18dd2e00fbb2d05aa104ee8131a7d1c5 /src/wasm/wasm-validator.cpp
parentfc6d2df4eedfef53a0a29fed1ff3ce4707556700 (diff)
downloadbinaryen-3c78269032071490bc13dc5dbac02567d4d491e0.tar.gz
binaryen-3c78269032071490bc13dc5dbac02567d4d491e0.tar.bz2
binaryen-3c78269032071490bc13dc5dbac02567d4d491e0.zip
v8x16.swizzle (#2368)
As specified at https://github.com/WebAssembly/simd/blob/master/proposals/simd/SIMD.md#swizzling-using-variable-indices.
Diffstat (limited to 'src/wasm/wasm-validator.cpp')
-rw-r--r--src/wasm/wasm-validator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp
index 1c30d0d2a..278ec4769 100644
--- a/src/wasm/wasm-validator.cpp
+++ b/src/wasm/wasm-validator.cpp
@@ -1366,7 +1366,8 @@ void FunctionValidator::visitBinary(Binary* curr) {
case NarrowSVecI16x8ToVecI8x16:
case NarrowUVecI16x8ToVecI8x16:
case NarrowSVecI32x4ToVecI16x8:
- case NarrowUVecI32x4ToVecI16x8: {
+ case NarrowUVecI32x4ToVecI16x8:
+ case SwizzleVec8x16: {
shouldBeEqualOrFirstIsUnreachable(
curr->left->type, v128, curr, "v128 op");
shouldBeEqualOrFirstIsUnreachable(