From 975a7e2d1cda8196da44f35d0e22394c36f0093c Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Fri, 24 Jul 2026 22:29:30 +0000 Subject: [PATCH] [multibyte] Disable expanded array types until interpreter is ready. --- src/wasm/wasm-validator.cpp | 4 ++-- test/lit/array-multibyte.wast | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp index 4ef2e8b1c3e..5449e186fce 100644 --- a/src/wasm/wasm-validator.cpp +++ b/src/wasm/wasm-validator.cpp @@ -3869,8 +3869,8 @@ void FunctionValidator::visitArraySet(ArraySet* curr) { } static bool isValidMultibyteElement(const Field& element) { - return element.packedType == Field::i8 || element.packedType == Field::i16 || - (element.packedType == Field::NotPacked && element.type.isNumber()); + // TODO: Expand once interpreter supports additional numeric types. + return element.packedType == Field::i8; } void FunctionValidator::visitArrayLoad(ArrayLoad* curr) { diff --git a/test/lit/array-multibyte.wast b/test/lit/array-multibyte.wast index 5bb339f5e21..7352c92a5d4 100644 --- a/test/lit/array-multibyte.wast +++ b/test/lit/array-multibyte.wast @@ -1,4 +1,5 @@ ;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited. +;; XFAIL: * ;; RUN: wasm-opt %s -all -S -o - | filecheck %s ;; RUN: wasm-opt %s -all --roundtrip -S -o - | filecheck %s --check-prefix=RTRIP