summaryrefslogtreecommitdiff
path: root/src/interp/interp.cc
diff options
context:
space:
mode:
authorKeith Winstein <208955+keithw@users.noreply.github.com>2024-10-30 20:00:59 -0700
committerGitHub <noreply@github.com>2024-10-30 20:00:59 -0700
commit6a5cbb94fad9b375469d6433429521988b1de20b (patch)
tree847c7b09e581bdeb5de8ed1fb014cd643b7b1d0e /src/interp/interp.cc
parent9a7cf04d0fb9d4fbf0d943b7a7c5a761c014eb09 (diff)
downloadwabt-6a5cbb94fad9b375469d6433429521988b1de20b.tar.gz
wabt-6a5cbb94fad9b375469d6433429521988b1de20b.tar.bz2
wabt-6a5cbb94fad9b375469d6433429521988b1de20b.zip
Update testsuite (#2495)
The memory64 `table.wast` test has started to depend on function-references and gc (which WABT doesn't support yet), so vendor an older version of the test.
Diffstat (limited to 'src/interp/interp.cc')
-rw-r--r--src/interp/interp.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interp/interp.cc b/src/interp/interp.cc
index 97f35f81..a3dd9b4a 100644
--- a/src/interp/interp.cc
+++ b/src/interp/interp.cc
@@ -78,6 +78,14 @@ Result Match(const Limits& expected,
}
}
+ if (expected.is_64 && !actual.is_64) {
+ *out_msg = StringPrintf("expected i64 memory, but i32 memory provided");
+ return Result::Error;
+ } else if (actual.is_64 && !expected.is_64) {
+ *out_msg = StringPrintf("expected i32 memory, but i64 memory provided");
+ return Result::Error;
+ }
+
return Result::Ok;
}