summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2020-01-09 11:36:21 -0800
committerGitHub <noreply@github.com>2020-01-09 11:36:21 -0800
commit415c3bb1b70c5edc9beb3a7e2cea5d9247e1e52c (patch)
tree5cf869855722fce5f88e11c0968007d8f37109f8 /src/common.h
parent7de6d8eedd550a9001a2db9d9e04b7ad941c9be7 (diff)
downloadwabt-415c3bb1b70c5edc9beb3a7e2cea5d9247e1e52c.tar.gz
wabt-415c3bb1b70c5edc9beb3a7e2cea5d9247e1e52c.tar.bz2
wabt-415c3bb1b70c5edc9beb3a7e2cea5d9247e1e52c.zip
Update testsuite (#1275)
The two primary changes involved are: 1. Removal of `assert_return_canonical_nan`/`arithetic nan` in favor of special `nan:canonical`/`nan:arithmetic` constants that can only be used in test expectations. See: https://github.com/WebAssembly/spec/pull/1104 2. New trapping behaviour for bulk memory operations. Range checks are now performed up front for opterations such as memory.fill and memory.copy. See: https://github.com/webassembly/bulk-memory-operations/issues/111 And: https://github.com/webassembly/bulk-memory-operations/pull/123 The old behaviour is still kept around to support table.fill which is defined in reference-types proposal and has yet to be updated.
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index a01b2989..6437bb7a 100644
--- a/src/common.h
+++ b/src/common.h
@@ -235,6 +235,12 @@ enum class SegmentKind {
Declared,
};
+// Used in test asserts for special expected values "nan:canonical" and "nan:arithmetic"
+enum class ExpectedNan {
+ Canonical,
+ Arithmetic,
+};
+
// Matches binary format, do not change.
enum SegmentFlags : uint8_t {
SegFlagsNone = 0,