summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--include/wabt/feature.def1
-rw-r--r--include/wabt/interp/interp.h6
-rw-r--r--include/wabt/ir.h50
-rw-r--r--include/wabt/opcode-code-table.h7
-rw-r--r--include/wabt/opcode.def22
-rw-r--r--include/wabt/opcode.h11
-rw-r--r--include/wabt/token.def1
-rw-r--r--include/wabt/wast-parser.h2
-rw-r--r--src/binary-reader.cc20
-rw-r--r--src/binary-writer-spec.cc13
-rw-r--r--src/interp/interp.cc112
-rw-r--r--src/interp/istream.cc20
-rw-r--r--src/lexer-keywords.txt21
-rw-r--r--src/opcode-code-table.c2
-rw-r--r--src/opcode.cc22
-rw-r--r--src/prebuilt/lexer-keywords.cc2566
-rw-r--r--src/tools/spectest-interp.cc68
-rw-r--r--src/validator.cc54
-rw-r--r--src/wast-parser.cc25
-rw-r--r--test/help/spectest-interp.txt1
-rw-r--r--test/help/wasm-interp.txt1
-rw-r--r--test/help/wasm-opcodecnt.txt1
-rw-r--r--test/help/wasm-validate.txt1
-rw-r--r--test/help/wasm2wat.txt1
-rw-r--r--test/help/wast2json.txt1
-rw-r--r--test/help/wat-desugar.txt1
-rw-r--r--test/help/wat2wasm.txt1
-rw-r--r--test/spec/relaxed-simd/i16x8_relaxed_q15mulr_s.txt6
-rw-r--r--test/spec/relaxed-simd/i32x4_relaxed_trunc.txt6
-rw-r--r--test/spec/relaxed-simd/i8x16_relaxed_swizzle.txt6
-rw-r--r--test/spec/relaxed-simd/relaxed_laneselect.txt6
-rw-r--r--test/spec/relaxed-simd/relaxed_madd_nmadd.txt6
-rw-r--r--test/spec/relaxed-simd/relaxed_min_max.txt6
-rwxr-xr-xtest/update-spec-tests.py1
35 files changed, 1770 insertions, 1300 deletions
diff --git a/README.md b/README.md
index 3905094e..a17612da 100644
--- a/README.md
+++ b/README.md
@@ -61,6 +61,7 @@ Wabt has been compiled to JavaScript via emscripten. Some of the functionality i
| [memory64][] | `--enable-memory64` | | ✓ | ✓ | ✓ | ✓ | |
| [multi-memory][] | `--enable-multi-memory` | | ✓ | ✓ | ✓ | ✓ | ✓ |
| [extended-const][] | `--enable-extended-const` | | ✓ | ✓ | ✓ | ✓ | |
+| [relaxed-simd*][] | `--enable-relaxed-simd` | | ✓ | ✓ | ✓ | ✓ | |
[exception handling]: https://github.com/WebAssembly/exception-handling
[mutable globals]: https://github.com/WebAssembly/mutable-global
@@ -76,6 +77,7 @@ Wabt has been compiled to JavaScript via emscripten. Some of the functionality i
[memory64]: https://github.com/WebAssembly/memory64
[multi-memory]: https://github.com/WebAssembly/multi-memory
[extended-const]: https://github.com/WebAssembly/extended-const
+[relaxed-simd*]: https://github.com/WebAssembly/relaxed-simd (except the f32x4.relaxed_dot_bf16x8_add_f32x4 instruction which is not yet implemented)
## Cloning
diff --git a/include/wabt/feature.def b/include/wabt/feature.def
index 26b1db79..00a4e7f2 100644
--- a/include/wabt/feature.def
+++ b/include/wabt/feature.def
@@ -39,3 +39,4 @@ WABT_FEATURE(gc, "gc", false, "Garbage c
WABT_FEATURE(memory64, "memory64", false, "64-bit memory")
WABT_FEATURE(multi_memory, "multi-memory", false, "Multi-memory")
WABT_FEATURE(extended_const, "extended-const", false, "Extended constant expressions")
+WABT_FEATURE(relaxed_simd, "relaxed-simd", false, "Relaxed SIMD")
diff --git a/include/wabt/interp/interp.h b/include/wabt/interp/interp.h
index dc405a8e..6af605ac 100644
--- a/include/wabt/interp/interp.h
+++ b/include/wabt/interp/interp.h
@@ -1217,6 +1217,12 @@ class Thread {
template <typename S, typename T>
RunResult DoSimdDot();
template <typename S, typename T>
+ RunResult DoSimdDotAdd();
+ template <typename S>
+ RunResult DoSimdRelaxedMadd();
+ template <typename S>
+ RunResult DoSimdRelaxedNmadd();
+ template <typename S, typename T>
RunResult DoSimdLoadExtend(Instr, Trap::Ptr* out_trap);
template <typename S, typename T>
RunResult DoSimdExtaddPairwise();
diff --git a/include/wabt/ir.h b/include/wabt/ir.h
index bf52a602..68846bc0 100644
--- a/include/wabt/ir.h
+++ b/include/wabt/ir.h
@@ -202,6 +202,54 @@ struct Const {
};
using ConstVector = std::vector<Const>;
+enum class ExpectationType {
+ Values,
+ Either,
+};
+
+class Expectation {
+ public:
+ Expectation() = delete;
+ virtual ~Expectation() = default;
+ ExpectationType type() const { return type_; }
+
+ Location loc;
+
+ ConstVector expected;
+
+ protected:
+ explicit Expectation(ExpectationType type, const Location& loc = Location())
+ : loc(loc), type_(type) {}
+
+ private:
+ ExpectationType type_;
+};
+
+template <ExpectationType TypeEnum>
+class ExpectationMixin : public Expectation {
+ public:
+ static bool classof(const Expectation* expectation) {
+ return expectation->type() == TypeEnum;
+ }
+
+ explicit ExpectationMixin(const Location& loc = Location())
+ : Expectation(TypeEnum, loc) {}
+};
+
+class ValueExpectation : public ExpectationMixin<ExpectationType::Values> {
+ public:
+ explicit ValueExpectation(const Location& loc = Location())
+ : ExpectationMixin<ExpectationType::Values>(loc) {}
+};
+
+struct EitherExpectation : public ExpectationMixin<ExpectationType::Either> {
+ public:
+ explicit EitherExpectation(const Location& loc = Location())
+ : ExpectationMixin<ExpectationType::Either>(loc) {}
+};
+
+typedef std::unique_ptr<Expectation> ExpectationPtr;
+
struct FuncSignature {
TypeVector param_types;
TypeVector result_types;
@@ -1375,7 +1423,7 @@ class RegisterCommand : public CommandMixin<CommandType::Register> {
class AssertReturnCommand : public CommandMixin<CommandType::AssertReturn> {
public:
ActionPtr action;
- ConstVector expected;
+ ExpectationPtr expected;
};
template <CommandType TypeEnum>
diff --git a/include/wabt/opcode-code-table.h b/include/wabt/opcode-code-table.h
index 3adb478d..13c5838e 100644
--- a/include/wabt/opcode-code-table.h
+++ b/include/wabt/opcode-code-table.h
@@ -24,7 +24,12 @@
extern "C" {
#endif
-#define WABT_OPCODE_CODE_TABLE_SIZE 65536
+#define WABT_OPCODE_CODE_TABLE_SIZE 131072
+
+/*
+ * Number of bits required to store an opcode
+ */
+#define MAX_OPCODE_BITS 9
/* This structure is defined in C because C++ doesn't (yet) allow you to use
* designated array initializers, i.e. [10] = {foo}.
diff --git a/include/wabt/opcode.def b/include/wabt/opcode.def
index 9005418e..e10f9cba 100644
--- a/include/wabt/opcode.def
+++ b/include/wabt/opcode.def
@@ -501,6 +501,28 @@ WABT_OPCODE(V128, V128, ___, ___, 0, 0xfd, 0xfd, I32X4TruncSatF64X2UZero, "i3
WABT_OPCODE(V128, V128, ___, ___, 0, 0xfd, 0xfe, F64X2ConvertLowI32X4S, "f64x2.convert_low_i32x4_s", "")
WABT_OPCODE(V128, V128, ___, ___, 0, 0xfd, 0xff, F64X2ConvertLowI32X4U, "f64x2.convert_low_i32x4_u", "")
+/* Relaxed-SIMD opcodes */
+WABT_OPCODE(V128, V128, V128, ___, 0, 0xfd, 0x100, I8X16RelaxedSwizzle, "i8x16.relaxed_swizzle", "")
+WABT_OPCODE(V128, V128, ___, ___, 0, 0xfd, 0x101, I32X4RelaxedTruncF32X4S, "i32x4.relaxed_trunc_f32x4_s", "")
+WABT_OPCODE(V128, V128, ___, ___, 0, 0xfd, 0x102, I32X4RelaxedTruncF32X4U, "i32x4.relaxed_trunc_f32x4_u", "")
+WABT_OPCODE(V128, V128, ___, ___, 0, 0xfd, 0x103, I32X4RelaxedTruncF64X2SZero, "i32x4.relaxed_trunc_f64x2_s_zero", "")
+WABT_OPCODE(V128, V128, ___, ___, 0, 0xfd, 0x104, I32X4RelaxedTruncF64X2UZero, "i32x4.relaxed_trunc_f64x2_u_zero", "")
+WABT_OPCODE(V128, V128, V128, V128, 0, 0xfd, 0x105, F32X4RelaxedMadd, "f32x4.relaxed_madd", "")
+WABT_OPCODE(V128, V128, V128, V128, 0, 0xfd, 0x106, F32X4RelaxedNmadd, "f32x4.relaxed_nmadd", "")
+WABT_OPCODE(V128, V128, V128, V128, 0, 0xfd, 0x107, F64X2RelaxedMadd, "f64x2.relaxed_madd", "")
+WABT_OPCODE(V128, V128, V128, V128, 0, 0xfd, 0x108, F64X2RelaxedNmadd, "f64x2.relaxed_nmadd", "")
+WABT_OPCODE(V128, V128, V128, V128, 0, 0xfd, 0x109, I8X16RelaxedLaneSelect, "i8x16.relaxed_laneselect", "")
+WABT_OPCODE(V128, V128, V128, V128, 0, 0xfd, 0x10a, I16X8RelaxedLaneSelect, "i16x8.relaxed_laneselect", "")
+WABT_OPCODE(V128, V128, V128, V128, 0, 0xfd, 0x10b, I32X4RelaxedLaneSelect, "i32x4.relaxed_laneselect", "")
+WABT_OPCODE(V128, V128, V128, V128, 0, 0xfd, 0x10c, I64X2RelaxedLaneSelect, "i64x2.relaxed_laneselect", "")
+WABT_OPCODE(V128, V128, V128, ___, 0, 0xfd, 0x10d, F32X4RelaxedMin, "f32x4.relaxed_min", "")
+WABT_OPCODE(V128, V128, V128, ___, 0, 0xfd, 0x10e, F32X4RelaxedMax, "f32x4.relaxed_max", "")
+WABT_OPCODE(V128, V128, V128, ___, 0, 0xfd, 0x10f, F64X2RelaxedMin, "f64x2.relaxed_min", "")
+WABT_OPCODE(V128, V128, V128, ___, 0, 0xfd, 0x110, F64X2RelaxedMax, "f64x2.relaxed_max", "")
+WABT_OPCODE(V128, V128, V128, ___, 0, 0xfd, 0x111, I16X8RelaxedQ15mulrS, "i16x8.relaxed_q15mulr_s", "")
+WABT_OPCODE(V128, V128, V128, ___, 0, 0xfd, 0x112, I16X8DotI8X16I7X16S, "i16x8.dot_i8x16_i7x16_s", "")
+WABT_OPCODE(V128, V128, V128, V128, 0, 0xfd, 0x113, I32X4DotI8X16I7X16AddS, "i32x4.dot_i8x16_i7x16_add_s", "")
+
/* Thread opcodes (--enable-threads) */
WABT_OPCODE(I32, I32, I32, ___, 4, 0xfe, 0x00, MemoryAtomicNotify, "memory.atomic.notify", "")
WABT_OPCODE(I32, I32, I32, I64, 4, 0xfe, 0x01, MemoryAtomicWait32, "memory.atomic.wait32", "")
diff --git a/include/wabt/opcode.h b/include/wabt/opcode.h
index 47e27f9b..a7c7b249 100644
--- a/include/wabt/opcode.h
+++ b/include/wabt/opcode.h
@@ -107,12 +107,11 @@ struct Opcode {
};
static uint32_t PrefixCode(uint8_t prefix, uint32_t code) {
- // For now, 8 bits is enough for all codes.
- if (code >= 0x100) {
- // Clamp to 0xff, since we know that it is an invalid code.
- code = 0xff;
+ if (code >= (1 << MAX_OPCODE_BITS)) {
+ // Clamp to (2^bits - 1), since we know that it is an invalid code.
+ code = (1 << MAX_OPCODE_BITS) - 1;
}
- return (prefix << 8) | code;
+ return (prefix << MAX_OPCODE_BITS) | code;
}
// The Opcode struct only stores an enumeration (Opcode::Enum) of all valid
@@ -137,7 +136,7 @@ struct Opcode {
uint8_t* out_prefix,
uint32_t* out_code) {
uint32_t prefix_code = ~static_cast<uint32_t>(e) + 1;
- *out_prefix = prefix_code >> 8;
+ *out_prefix = prefix_code >> MAX_OPCODE_BITS;
*out_code = prefix_code & 0xff;
}
diff --git a/include/wabt/token.def b/include/wabt/token.def
index b8869abd..1e95da62 100644
--- a/include/wabt/token.def
+++ b/include/wabt/token.def
@@ -34,6 +34,7 @@ WABT_TOKEN(Data, "data")
WABT_TOKEN(Declare, "declare")
WABT_TOKEN(Delegate, "delegate")
WABT_TOKEN(Do, "do")
+WABT_TOKEN(Either, "either")
WABT_TOKEN(Elem, "elem")
WABT_TOKEN(Eof, "EOF")
WABT_TOKEN(Tag, "tag")
diff --git a/include/wabt/wast-parser.h b/include/wabt/wast-parser.h
index 23194a7e..2aeb14bf 100644
--- a/include/wabt/wast-parser.h
+++ b/include/wabt/wast-parser.h
@@ -186,6 +186,8 @@ class WastParser {
Result ParseF32(Const*, ConstType type);
Result ParseF64(Const*, ConstType type);
Result ParseConst(Const*, ConstType type);
+ Result ParseExpectedValues(ExpectationPtr*);
+ Result ParseEither(ConstVector*);
Result ParseExternref(Const*);
Result ParseExpectedNan(ExpectedNan* expected);
Result ParseConstList(ConstVector*, ConstType type);
diff --git a/src/binary-reader.cc b/src/binary-reader.cc
index 63362636..8a1c9fee 100644
--- a/src/binary-reader.cc
+++ b/src/binary-reader.cc
@@ -1156,6 +1156,13 @@ Result BinaryReader::ReadInstructions(bool stop_on_end,
case Opcode::I64X2ExtmulHighI32X4U:
case Opcode::I16X8Q15mulrSatS:
case Opcode::I32X4DotI16X8S:
+ case Opcode::I8X16RelaxedSwizzle:
+ case Opcode::F32X4RelaxedMin:
+ case Opcode::F32X4RelaxedMax:
+ case Opcode::F64X2RelaxedMin:
+ case Opcode::F64X2RelaxedMax:
+ case Opcode::I16X8RelaxedQ15mulrS:
+ case Opcode::I16X8DotI8X16I7X16S:
CALLBACK(OnBinaryExpr, opcode);
CALLBACK0(OnOpcodeBare);
break;
@@ -1319,11 +1326,24 @@ Result BinaryReader::ReadInstructions(bool stop_on_end,
case Opcode::I16X8ExtaddPairwiseI8X16U:
case Opcode::I32X4ExtaddPairwiseI16X8S:
case Opcode::I32X4ExtaddPairwiseI16X8U:
+ case Opcode::I32X4RelaxedTruncF32X4S:
+ case Opcode::I32X4RelaxedTruncF32X4U:
+ case Opcode::I32X4RelaxedTruncF64X2SZero:
+ case Opcode::I32X4RelaxedTruncF64X2UZero:
CALLBACK(OnUnaryExpr, opcode);
CALLBACK0(OnOpcodeBare);
break;
case Opcode::V128BitSelect:
+ case Opcode::F32X4RelaxedMadd:
+ case Opcode::F32X4RelaxedNmadd:
+ case Opcode::F64X2RelaxedMadd:
+ case Opcode::F64X2RelaxedNmadd:
+ case Opcode::I8X16RelaxedLaneSelect:
+ case Opcode::I16X8RelaxedLaneSelect:
+ case Opcode::I32X4RelaxedLaneSelect:
+ case Opcode::I64X2RelaxedLaneSelect:
+ case Opcode::I32X4DotI8X16I7X16AddS:
CALLBACK(OnTernaryExpr, opcode);
CALLBACK0(OnOpcodeBare);
break;
diff --git a/src/binary-writer-spec.cc b/src/binary-writer-spec.cc
index af75464a..16153f48 100644
--- a/src/binary-writer-spec.cc
+++ b/src/binary-writer-spec.cc
@@ -568,8 +568,17 @@ void BinaryWriterSpec::WriteCommands() {
WriteSeparator();
WriteAction(*assert_return_command->action);
WriteSeparator();
- WriteKey("expected");
- WriteConstVector(assert_return_command->expected);
+ const Expectation* expectation = assert_return_command->expected.get();
+ switch (expectation->type()) {
+ case ExpectationType::Values:
+ WriteKey("expected");
+ break;
+
+ case ExpectationType::Either:
+ WriteKey("either");
+ break;
+ }
+ WriteConstVector(expectation->expected);
break;
}
diff --git a/src/interp/interp.cc b/src/interp/interp.cc
index 81e57f70..c08bf5fe 100644
--- a/src/interp/interp.cc
+++ b/src/interp/interp.cc
@@ -1149,6 +1149,7 @@ RunResult Thread::StepInternal(Trap::Ptr* out_trap) {
istream.Trace(trace_stream_, pc, trace_source_.get());
}
+ // clang-format off
auto instr = istream.Read(&pc);
switch (instr.op) {
case O::Unreachable:
@@ -1614,9 +1615,15 @@ RunResult Thread::StepInternal(Trap::Ptr* out_trap) {
case O::V128And: return DoSimdBinop(IntAnd<u64>);
case O::V128Or: return DoSimdBinop(IntOr<u64>);
case O::V128Xor: return DoSimdBinop(IntXor<u64>);
- case O::V128BitSelect: return DoSimdBitSelect();
case O::V128AnyTrue: return DoSimdIsTrue<u8x16, 1>();
+ case O::V128BitSelect:
+ case O::I8X16RelaxedLaneSelect:
+ case O::I16X8RelaxedLaneSelect:
+ case O::I32X4RelaxedLaneSelect:
+ case O::I64X2RelaxedLaneSelect:
+ return DoSimdBitSelect();
+
case O::I8X16Neg: return DoSimdUnop(IntNeg<u8>);
case O::I8X16Bitmask: return DoSimdBitmask<s8x16>();
case O::I8X16AllTrue: return DoSimdIsTrue<u8x16, 16>();
@@ -1693,11 +1700,17 @@ RunResult Thread::StepInternal(Trap::Ptr* out_trap) {
case O::F32X4Sub: return DoSimdBinop(Sub<f32>);
case O::F32X4Mul: return DoSimdBinop(Mul<f32>);
case O::F32X4Div: return DoSimdBinop(FloatDiv<f32>);
- case O::F32X4Min: return DoSimdBinop(FloatMin<f32>);
- case O::F32X4Max: return DoSimdBinop(FloatMax<f32>);
case O::F32X4PMin: return DoSimdBinop(FloatPMin<f32>);
case O::F32X4PMax: return DoSimdBinop(FloatPMax<f32>);
+ case O::F32X4Min:
+ case O::F32X4RelaxedMin:
+ return DoSimdBinop(FloatMin<f32>);
+
+ case O::F32X4Max:
+ case O::F32X4RelaxedMax:
+ return DoSimdBinop(FloatMax<f32>);
+
case O::F64X2Abs: return DoSimdUnop(FloatAbs<f64>);
case O::F64X2Neg: return DoSimdUnop(FloatNeg<f64>);
case O::F64X2Sqrt: return DoSimdUnop(FloatSqrt<f64>);
@@ -1705,23 +1718,44 @@ RunResult Thread::StepInternal(Trap::Ptr* out_trap) {
case O::F64X2Sub: return DoSimdBinop(Sub<f64>);
case O::F64X2Mul: return DoSimdBinop(Mul<f64>);
case O::F64X2Div: return DoSimdBinop(FloatDiv<f64>);
- case O::F64X2Min: return DoSimdBinop(FloatMin<f64>);
- case O::F64X2Max: return DoSimdBinop(FloatMax<f64>);
case O::F64X2PMin: return DoSimdBinop(FloatPMin<f64>);
case O::F64X2PMax: return DoSimdBinop(FloatPMax<f64>);
- case O::I32X4TruncSatF32X4S: return DoSimdUnop(IntTruncSat<s32, f32>);
- case O::I32X4TruncSatF32X4U: return DoSimdUnop(IntTruncSat<u32, f32>);
+ case O::F64X2Min:
+ case O::F64X2RelaxedMin:
+ return DoSimdBinop(FloatMin<f64>);
+
+ case O::F64X2Max:
+ case O::F64X2RelaxedMax:
+ return DoSimdBinop(FloatMax<f64>);
+
+ case O::I32X4TruncSatF32X4S:
+ case O::I32X4RelaxedTruncF32X4S:
+ return DoSimdUnop(IntTruncSat<s32, f32>);
+
+ case O::I32X4TruncSatF32X4U:
+ case O::I32X4RelaxedTruncF32X4U:
+ return DoSimdUnop(IntTruncSat<u32, f32>);
+
+ case O::I32X4TruncSatF64X2SZero:
+ case O::I32X4RelaxedTruncF64X2SZero:
+ return DoSimdUnopZero(IntTruncSat<s32, f64>);
+
+ case O::I32X4TruncSatF64X2UZero:
+ case O::I32X4RelaxedTruncF64X2UZero:
+ return DoSimdUnopZero(IntTruncSat<u32, f64>);
+
case O::F32X4ConvertI32X4S: return DoSimdUnop(Convert<f32, s32>);
case O::F32X4ConvertI32X4U: return DoSimdUnop(Convert<f32, u32>);
case O::F32X4DemoteF64X2Zero: return DoSimdUnopZero(Convert<f32, f64>);
case O::F64X2PromoteLowF32X4: return DoSimdConvert<f64x2, f32x4, true>();
- case O::I32X4TruncSatF64X2SZero: return DoSimdUnopZero(IntTruncSat<s32, f64>);
- case O::I32X4TruncSatF64X2UZero: return DoSimdUnopZero(IntTruncSat<u32, f64>);
case O::F64X2ConvertLowI32X4S: return DoSimdConvert<f64x2, s32x4, true>();
case O::F64X2ConvertLowI32X4U: return DoSimdConvert<f64x2, u32x4, true>();
- case O::I8X16Swizzle: return DoSimdSwizzle();
+ case O::I8X16Swizzle:
+ case O::I8X16RelaxedSwizzle:
+ return DoSimdSwizzle();
+
case O::I8X16Shuffle: return DoSimdShuffle(instr);
case O::V128Load8Splat: return DoSimdLoadSplat<u8x16>(instr, out_trap);
@@ -1795,9 +1829,18 @@ RunResult Thread::StepInternal(Trap::Ptr* out_trap) {
case O::I64X2ExtmulLowI32X4U: return DoSimdExtmul<u64x2, u32x4, true>();
case O::I64X2ExtmulHighI32X4U: return DoSimdExtmul<u64x2, u32x4, false>();
- case O::I16X8Q15mulrSatS: return DoSimdBinop(SaturatingRoundingQMul<s16>);
+ case O::I16X8Q15mulrSatS:
+ case O::I16X8RelaxedQ15mulrS:
+ return DoSimdBinop(SaturatingRoundingQMul<s16>);
case O::I32X4DotI16X8S: return DoSimdDot<u32x4, s16x8>();
+ case O::I16X8DotI8X16I7X16S: return DoSimdDot<u16x8, s8x16>();
+ case O::I32X4DotI8X16I7X16AddS: return DoSimdDotAdd<u32x4, s16x8>();
+
+ case O::F32X4RelaxedMadd: return DoSimdRelaxedMadd<f32>();
+ case O::F32X4RelaxedNmadd: return DoSimdRelaxedNmadd<f32>();
+ case O::F64X2RelaxedMadd: return DoSimdRelaxedMadd<f64>();
+ case O::F64X2RelaxedNmadd: return DoSimdRelaxedNmadd<f64>();
case O::AtomicFence:
case O::MemoryAtomicNotify:
@@ -1907,6 +1950,7 @@ RunResult Thread::StepInternal(Trap::Ptr* out_trap) {
WABT_UNREACHABLE;
break;
}
+ // clang-format on
return RunResult::Ok;
}
@@ -2434,6 +2478,52 @@ RunResult Thread::DoSimdDot() {
return RunResult::Ok;
}
+template <typename S, typename T>
+RunResult Thread::DoSimdDotAdd() {
+ using SL = typename S::LaneType;
+ auto acc = Pop<S>();
+ auto rhs = Pop<T>();
+ auto lhs = Pop<T>();
+ S result;
+ for (u8 i = 0; i < S::lanes; ++i) {
+ u8 laneidx = i * 2;
+ SL lo = SL(lhs[laneidx]) * SL(rhs[laneidx]);
+ SL hi = SL(lhs[laneidx + 1]) * SL(rhs[laneidx + 1]);
+ result[i] = Add(lo, hi);
+ result[i] = Add(result[i], acc[i]);
+ }
+ Push(result);
+ return RunResult::Ok;
+}
+
+template <typename S>
+RunResult Thread::DoSimdRelaxedMadd() {
+ using SS = typename Simd128<S>::Type;
+ auto c = Pop<SS>();
+ auto b = Pop<SS>();
+ auto a = Pop<SS>();
+ SS result;
+ for (u8 i = 0; i < SS::lanes; ++i) {
+ result[i] = a[i] * b[i] + c[i];
+ }
+ Push(result);
+ return RunResult::Ok;
+}
+
+template <typename S>
+RunResult Thread::DoSimdRelaxedNmadd() {
+ using SS = typename Simd128<S>::Type;
+ auto c = Pop<SS>();
+ auto b = Pop<SS>();
+ auto a = Pop<SS>();
+ SS result;
+ for (u8 i = 0; i < SS::lanes; ++i) {
+ result[i] = -(a[i] * b[i]) + c[i];
+ }
+ Push(result);
+ return RunResult::Ok;
+}
+
template <typename T, typename V>
RunResult Thread::DoAtomicLoad(Instr instr, Trap::Ptr* out_trap) {
Memory::Ptr memory{store_, inst_->memories()[instr.imm_u32x2.fst]};
diff --git a/src/interp/istream.cc b/src/interp/istream.cc
index bea32105..8e5cb5a3 100644
--- a/src/interp/istream.cc
+++ b/src/interp/istream.cc
@@ -255,6 +255,10 @@ Instr Istream::Read(Offset* offset) const {
case Opcode::I16X8ExtaddPairwiseI8X16U:
case Opcode::I32X4ExtaddPairwiseI16X8S:
case Opcode::I32X4ExtaddPairwiseI16X8U:
+ case Opcode::I32X4RelaxedTruncF32X4S:
+ case Opcode::I32X4RelaxedTruncF32X4U:
+ case Opcode::I32X4RelaxedTruncF64X2SZero:
+ case Opcode::I32X4RelaxedTruncF64X2UZero:
// 0 immediates, 1 operand.
instr.kind = InstrKind::Imm_0_Op_1;
break;
@@ -468,12 +472,28 @@ Instr Istream::Read(Offset* offset) const {
case Opcode::V128Or:
case Opcode::V128Xor:
case Opcode::I8X16Swizzle:
+ case Opcode::I8X16RelaxedSwizzle:
+ case Opcode::F32X4RelaxedMin:
+ case Opcode::F32X4RelaxedMax:
+ case Opcode::F64X2RelaxedMin:
+ case Opcode::F64X2RelaxedMax:
+ case Opcode::I16X8RelaxedQ15mulrS:
+ case Opcode::I16X8DotI8X16I7X16S:
// 0 immediates, 2 operands
instr.kind = InstrKind::Imm_0_Op_2;
break;
case Opcode::Select:
case Opcode::SelectT:
+ case Opcode::F32X4RelaxedMadd:
+ case Opcode::F32X4RelaxedNmadd:
+ case Opcode::F64X2RelaxedMadd:
+ case Opcode::F64X2RelaxedNmadd:
+ case Opcode::I8X16RelaxedLaneSelect:
+ case Opcode::I16X8RelaxedLaneSelect:
+ case Opcode::I32X4RelaxedLaneSelect:
+ case Opcode::I64X2RelaxedLaneSelect:
+ case Opcode::I32X4DotI8X16I7X16AddS:
// 0 immediates, 3 operands
instr.kind = InstrKind::Imm_0_Op_3;
break;
diff --git a/src/lexer-keywords.txt b/src/lexer-keywords.txt
index 4927304b..96902792 100644
--- a/src/lexer-keywords.txt
+++ b/src/lexer-keywords.txt
@@ -42,6 +42,7 @@ declare, TokenType::Declare
delegate, TokenType::Delegate
do, TokenType::Do
drop, TokenType::Drop, Opcode::Drop
+either, TokenType::Either
elem.drop, TokenType::ElemDrop, Opcode::ElemDrop
elem, TokenType::Elem
else, TokenType::Else, Opcode::Else
@@ -101,6 +102,10 @@ f32x4.neg, TokenType::Unary, Opcode::F32X4Neg
f32x4.ne, TokenType::Compare, Opcode::F32X4Ne
f32x4.pmax, TokenType::Binary, Opcode::F32X4PMax
f32x4.pmin, TokenType::Binary, Opcode::F32X4PMin
+f32x4.relaxed_madd, TokenType::Ternary, Opcode::F32X4RelaxedMadd
+f32x4.relaxed_max, TokenType::Binary, Opcode::F32X4RelaxedMax
+f32x4.relaxed_min, TokenType::Binary, Opcode::F32X4RelaxedMin
+f32x4.relaxed_nmadd, TokenType::Ternary, Opcode::F32X4RelaxedNmadd
f32x4.replace_lane, TokenType::SimdLaneOp, Opcode::F32X4ReplaceLane
f32x4.splat, TokenType::Unary, Opcode::F32X4Splat
f32x4.sqrt, TokenType::Unary, Opcode::F32X4Sqrt
@@ -157,6 +162,10 @@ f64x2.neg, TokenType::Unary, Opcode::F64X2Neg
f64x2.ne, TokenType::Compare, Opcode::F64X2Ne
f64x2.pmax, TokenType::Binary, Opcode::F64X2PMax
f64x2.pmin, TokenType::Binary, Opcode::F64X2PMin
+f64x2.relaxed_madd, TokenType::Ternary, Opcode::F64X2RelaxedMadd
+f64x2.relaxed_max, TokenType::Binary, Opcode::F64X2RelaxedMax
+f64x2.relaxed_min, TokenType::Binary, Opcode::F64X2RelaxedMin
+f64x2.relaxed_nmadd, TokenType::Ternary, Opcode::F64X2RelaxedNmadd
f64x2.replace_lane, TokenType::SimdLaneOp, Opcode::F64X2ReplaceLane
f64x2.splat, TokenType::Unary, Opcode::F64X2Splat
f64x2.sqrt, TokenType::Unary, Opcode::F64X2Sqrt
@@ -180,6 +189,7 @@ i16x8.add, TokenType::Binary, Opcode::I16X8Add
i16x8.all_true, TokenType::Unary, Opcode::I16X8AllTrue
i16x8.avgr_u, TokenType::Binary, Opcode::I16X8AvgrU
i16x8.bitmask, TokenType::Unary, Opcode::I16X8Bitmask
+i16x8.dot_i8x16_i7x16_s, TokenType::Binary, Opcode::I16X8DotI8X16I7X16S
i16x8.eq, TokenType::Compare, Opcode::I16X8Eq
i16x8.extract_lane_s, TokenType::SimdLaneOp, Opcode::I16X8ExtractLaneS
i16x8.extract_lane_u, TokenType::SimdLaneOp, Opcode::I16X8ExtractLaneU
@@ -203,6 +213,8 @@ i16x8.narrow_i32x4_u, TokenType::Binary, Opcode::I16X8NarrowI32X4U
i16x8.neg, TokenType::Unary, Opcode::I16X8Neg
i16x8.q15mulr_sat_s, TokenType::Binary, Opcode::I16X8Q15mulrSatS
i16x8.ne, TokenType::Compare, Opcode::I16X8Ne
+i16x8.relaxed_laneselect, TokenType::Ternary, Opcode::I16X8RelaxedLaneSelect
+i16x8.relaxed_q15mulr_s, TokenType::Binary, Opcode::I16X8RelaxedQ15mulrS
i16x8.replace_lane, TokenType::SimdLaneOp, Opcode::I16X8ReplaceLane
i16x8.shl, TokenType::Binary, Opcode::I16X8Shl
i16x8.shr_s, TokenType::Binary, Opcode::I16X8ShrS
@@ -303,6 +315,7 @@ i32x4.abs, TokenType::Unary, Opcode::I32X4Abs
i32x4.add, TokenType::Binary, Opcode::I32X4Add
i32x4.all_true, TokenType::Unary, Opcode::I32X4AllTrue
i32x4.bitmask, TokenType::Unary, Opcode::I32X4Bitmask
+i32x4.dot_i8x16_i7x16_add_s, TokenType::Ternary, Opcode::I32X4DotI8X16I7X16AddS
i32x4.eq, TokenType::Compare, Opcode::I32X4Eq
i32x4.extract_lane, TokenType::SimdLaneOp, Opcode::I32X4ExtractLane
i32x4.ge_s, TokenType::Compare, Opcode::I32X4GeS
@@ -311,6 +324,10 @@ i32x4.gt_s, TokenType::Compare, Opcode::I32X4GtS
i32x4.gt_u, TokenType::Compare, Opcode::I32X4GtU
i32x4.le_s, TokenType::Compare, Opcode::I32X4LeS
i32x4.le_u, TokenType::Compare, Opcode::I32X4LeU
+i32x4.relaxed_trunc_f32x4_s, TokenType::Unary, Opcode::I32X4RelaxedTruncF32X4S
+i32x4.relaxed_trunc_f32x4_u, TokenType::Unary, Opcode::I32X4RelaxedTruncF32X4U
+i32x4.relaxed_trunc_f64x2_s_zero, TokenType::Unary, Opcode::I32X4RelaxedTruncF64X2SZero
+i32x4.relaxed_trunc_f64x2_u_zero, TokenType::Unary, Opcode::I32X4RelaxedTruncF64X2UZero
v128.load16x4_s, TokenType::Load, Opcode::V128Load16X4S
v128.load16x4_u, TokenType::Load, Opcode::V128Load16X4U
i32x4.lt_s, TokenType::Compare, Opcode::I32X4LtS
@@ -323,6 +340,7 @@ i32x4.dot_i16x8_s, TokenType::Binary, Opcode::I32X4DotI16X8S
i32x4.mul, TokenType::Binary, Opcode::I32X4Mul
i32x4.neg, TokenType::Unary, Opcode::I32X4Neg
i32x4.ne, TokenType::Compare, Opcode::I32X4Ne
+i32x4.relaxed_laneselect, TokenType::Ternary, Opcode::I32X4RelaxedLaneSelect
i32x4.replace_lane, TokenType::SimdLaneOp, Opcode::I32X4ReplaceLane
i32x4.shl, TokenType::Binary, Opcode::I32X4Shl
i32x4.shr_s, TokenType::Binary, Opcode::I32X4ShrS
@@ -455,6 +473,7 @@ i64x2.extend_low_i32x4_s, TokenType::Unary, Opcode::I64X2ExtendLowI32X4S
i64x2.extend_high_i32x4_s, TokenType::Unary, Opcode::I64X2ExtendHighI32X4S
i64x2.extend_low_i32x4_u, TokenType::Unary, Opcode::I64X2ExtendLowI32X4U
i64x2.extend_high_i32x4_u, TokenType::Unary, Opcode::I64X2ExtendHighI32X4U
+i64x2.relaxed_laneselect, TokenType::Ternary, Opcode::I64X2RelaxedLaneSelect
i64x2.replace_lane, TokenType::SimdLaneOp, Opcode::I64X2ReplaceLane
i64x2.shl, TokenType::Binary, Opcode::I64X2Shl
i64x2.shr_s, TokenType::Binary, Opcode::I64X2ShrS
@@ -494,6 +513,8 @@ i8x16.narrow_i16x8_u, TokenType::Binary, Opcode::I8X16NarrowI16X8U
i8x16.neg, TokenType::Unary, Opcode::I8X16Neg
i8x16.popcnt, TokenType::Unary, Opcode::I8X16Popcnt
i8x16.ne, TokenType::Compare, Opcode::I8X16Ne
+i8x16.relaxed_swizzle, TokenType::Binary, Opcode::I8X16RelaxedSwizzle
+i8x16.relaxed_laneselect, TokenType::Ternary, Opcode::I8X16RelaxedLaneSelect
i8x16.replace_lane, TokenType::SimdLaneOp, Opcode::I8X16ReplaceLane
i8x16.shl, TokenType::Binary, Opcode::I8X16Shl
i8x16.shr_s, TokenType::Binary, Opcode::I8X16ShrS
diff --git a/src/opcode-code-table.c b/src/opcode-code-table.c
index b9b32a1a..e3fdc994 100644
--- a/src/opcode-code-table.c
+++ b/src/opcode-code-table.c
@@ -35,7 +35,7 @@ WABT_STATIC_ASSERT(Invalid <= WABT_OPCODE_CODE_TABLE_SIZE);
uint32_t WabtOpcodeCodeTable[WABT_OPCODE_CODE_TABLE_SIZE] = {
#define WABT_OPCODE(rtype, type1, type2, type3, mem_size, prefix, code, Name, \
text, decomp) \
- [(prefix << 8) + code] = Name,
+ [(prefix << MAX_OPCODE_BITS) + code] = Name,
#include "wabt/opcode.def"
#undef WABT_OPCODE
};
diff --git a/src/opcode.cc b/src/opcode.cc
index c948ab21..3a62fa71 100644
--- a/src/opcode.cc
+++ b/src/opcode.cc
@@ -318,6 +318,28 @@ bool Opcode::IsEnabled(const Features& features) const {
case Opcode::I32X4Abs:
return features.simd_enabled();
+ case Opcode::I8X16RelaxedSwizzle:
+ case Opcode::I32X4RelaxedTruncF32X4S:
+ case Opcode::I32X4RelaxedTruncF32X4U:
+ case Opcode::I32X4RelaxedTruncF64X2SZero:
+ case Opcode::I32X4RelaxedTruncF64X2UZero:
+ case Opcode::F32X4RelaxedMadd:
+ case Opcode::F32X4RelaxedNmadd:
+ case Opcode::F64X2RelaxedMadd:
+ case Opcode::F64X2RelaxedNmadd:
+ case Opcode::I8X16RelaxedLaneSelect:
+ case Opcode::I16X8RelaxedLaneSelect:
+ case Opcode::I32X4RelaxedLaneSelect:
+ case Opcode::I64X2RelaxedLaneSelect:
+ case Opcode::F32X4RelaxedMin:
+ case Opcode::F32X4RelaxedMax:
+ case Opcode::F64X2RelaxedMin:
+ case Opcode::F64X2RelaxedMax:
+ case Opcode::I16X8RelaxedQ15mulrS:
+ case Opcode::I16X8DotI8X16I7X16S:
+ case Opcode::I32X4DotI8X16I7X16AddS:
+ return features.relaxed_simd_enabled();
+
case Opcode::MemoryInit:
case Opcode::DataDrop:
case Opcode::MemoryCopy:
diff --git a/src/prebuilt/lexer-keywords.cc b/src/prebuilt/lexer-keywords.cc
index 2d8ec4e1..bb7152fc 100644
--- a/src/prebuilt/lexer-keywords.cc
+++ b/src/prebuilt/lexer-keywords.cc
@@ -1,6 +1,6 @@
/* C++ code produced by gperf version 3.1 */
/* Command-line: gperf -m 50 -L C++ -N InWordSet -E -t -c --output-file=src/prebuilt/lexer-keywords.cc src/lexer-keywords.txt */
-/* Computed positions: -k'1,3,5-8,10,12,15,17-19,23,$' */
+/* Computed positions: -k'1,3,5-8,10,12,15,17-19,23,27,$' */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
@@ -48,7 +48,7 @@ struct TokenInfo {
Opcode opcode;
};
};
-/* maximum key range = 2358, duplicates = 0 */
+/* maximum key range = 2423, duplicates = 0 */
class Perfect_Hash
{
@@ -63,38 +63,44 @@ Perfect_Hash::hash (const char *str, size_t len)
{
static unsigned short asso_values[] =
{
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 13, 2380, 2380, 540,
- 325, 4, 181, 3, 173, 368, 142, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 34, 4, 6, 776, 40,
- 31, 9, 621, 3, 399, 214, 5, 8, 5, 126,
- 25, 75, 471, 396, 20, 5, 17, 3, 626, 356,
- 58, 515, 271, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380, 2380,
- 2380, 2380, 2380, 2380, 2380, 2380, 2380
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 7, 2453, 2453, 532,
+ 325, 8, 13, 7, 327, 314, 111, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 220, 10, 35, 678, 60,
+ 49, 11, 538, 7, 399, 128, 15, 34, 9, 56,
+ 13, 64, 766, 737, 14, 9, 19, 7, 411, 435,
+ 122, 393, 105, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453, 2453,
+ 2453, 2453, 2453, 2453, 2453, 2453, 2453
};
unsigned int hval = len;
switch (hval)
{
default:
+ hval += asso_values[static_cast<unsigned char>(str[26])];
+ /*FALLTHROUGH*/
+ case 26:
+ case 25:
+ case 24:
+ case 23:
hval += asso_values[static_cast<unsigned char>(str[22])];
/*FALLTHROUGH*/
case 22:
@@ -152,1512 +158,1558 @@ Perfect_Hash::InWordSet (const char *str, size_t len)
{
enum
{
- TOTAL_KEYWORDS = 569,
+ TOTAL_KEYWORDS = 590,
MIN_WORD_LENGTH = 2,
- MAX_WORD_LENGTH = 29,
- MIN_HASH_VALUE = 22,
- MAX_HASH_VALUE = 2379
+ MAX_WORD_LENGTH = 32,
+ MIN_HASH_VALUE = 30,
+ MAX_HASH_VALUE = 2452
};
static struct TokenInfo wordlist[] =
{
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""},
-#line 40 "src/lexer-keywords.txt"
- {"data", TokenType::Data},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""},
-#line 123 "src/lexer-keywords.txt"
+ {""}, {""}, {""},
+#line 145 "src/lexer-keywords.txt"
+ {"f64", Type::F64},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 456 "src/lexer-keywords.txt"
+ {"i64", Type::I64},
+ {""}, {""}, {""},
+#line 547 "src/lexer-keywords.txt"
+ {"mut", TokenType::Mut},
+ {""}, {""}, {""},
+#line 115 "src/lexer-keywords.txt"
+ {"f32x4", TokenType::F32X4},
+ {""}, {""},
+#line 128 "src/lexer-keywords.txt"
{"f64.ge", TokenType::Compare, Opcode::F64Ge},
-#line 66 "src/lexer-keywords.txt"
+#line 67 "src/lexer-keywords.txt"
{"f32.ge", TokenType::Compare, Opcode::F32Ge},
-#line 125 "src/lexer-keywords.txt"
+#line 130 "src/lexer-keywords.txt"
{"f64.le", TokenType::Compare, Opcode::F64Le},
-#line 68 "src/lexer-keywords.txt"
+#line 69 "src/lexer-keywords.txt"
{"f32.le", TokenType::Compare, Opcode::F32Le},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""},
-#line 526 "src/lexer-keywords.txt"
- {"mut", TokenType::Mut},
-#line 124 "src/lexer-keywords.txt"
- {"f64.gt", TokenType::Compare, Opcode::F64Gt},
-#line 67 "src/lexer-keywords.txt"
- {"f32.gt", TokenType::Compare, Opcode::F32Gt},
-#line 127 "src/lexer-keywords.txt"
- {"f64.lt", TokenType::Compare, Opcode::F64Lt},
-#line 70 "src/lexer-keywords.txt"
- {"f32.lt", TokenType::Compare, Opcode::F32Lt},
-#line 132 "src/lexer-keywords.txt"
- {"f64.neg", TokenType::Unary, Opcode::F64Neg},
-#line 75 "src/lexer-keywords.txt"
- {"f32.neg", TokenType::Unary, Opcode::F32Neg},
-#line 133 "src/lexer-keywords.txt"
+ {""},
+#line 356 "src/lexer-keywords.txt"
+ {"i32x4", TokenType::I32X4},
+#line 138 "src/lexer-keywords.txt"
{"f64.ne", TokenType::Compare, Opcode::F64Ne},
-#line 76 "src/lexer-keywords.txt"
+#line 77 "src/lexer-keywords.txt"
{"f32.ne", TokenType::Compare, Opcode::F32Ne},
-#line 414 "src/lexer-keywords.txt"
+#line 40 "src/lexer-keywords.txt"
+ {"data", TokenType::Data},
+ {""},
+#line 137 "src/lexer-keywords.txt"
+ {"f64.neg", TokenType::Unary, Opcode::F64Neg},
+#line 76 "src/lexer-keywords.txt"
+ {"f32.neg", TokenType::Unary, Opcode::F32Neg},
+#line 546 "src/lexer-keywords.txt"
+ {"module", TokenType::Module},
+#line 565 "src/lexer-keywords.txt"
+ {"return", TokenType::Return, Opcode::Return},
+#line 432 "src/lexer-keywords.txt"
{"i64.ne", TokenType::Compare, Opcode::I64Ne},
-#line 277 "src/lexer-keywords.txt"
+#line 289 "src/lexer-keywords.txt"
{"i32.ne", TokenType::Compare, Opcode::I32Ne},
-#line 538 "src/lexer-keywords.txt"
- {"ref.null", TokenType::RefNull, Opcode::RefNull},
+#line 129 "src/lexer-keywords.txt"
+ {"f64.gt", TokenType::Compare, Opcode::F64Gt},
+#line 68 "src/lexer-keywords.txt"
+ {"f32.gt", TokenType::Compare, Opcode::F32Gt},
+#line 132 "src/lexer-keywords.txt"
+ {"f64.lt", TokenType::Compare, Opcode::F64Lt},
+#line 71 "src/lexer-keywords.txt"
+ {"f32.lt", TokenType::Compare, Opcode::F32Lt},
{""}, {""},
+#line 559 "src/lexer-keywords.txt"
+ {"ref.null", TokenType::RefNull, Opcode::RefNull},
+#line 93 "src/lexer-keywords.txt"
+ {"f32x4.ge", TokenType::Compare, Opcode::F32X4Ge},
+ {""},
+#line 95 "src/lexer-keywords.txt"
+ {"f32x4.le", TokenType::Compare, Opcode::F32X4Le},
+#line 101 "src/lexer-keywords.txt"
+ {"f32x4.neg", TokenType::Unary, Opcode::F32X4Neg},
#line 33 "src/lexer-keywords.txt"
{"br", TokenType::Br, Opcode::Br},
-#line 525 "src/lexer-keywords.txt"
- {"module", TokenType::Module},
+#line 43 "src/lexer-keywords.txt"
+ {"do", TokenType::Do},
+#line 102 "src/lexer-keywords.txt"
+ {"f32x4.ne", TokenType::Compare, Opcode::F32X4Ne},
{""}, {""},
-#line 556 "src/lexer-keywords.txt"
- {"table", TokenType::Table},
-#line 540 "src/lexer-keywords.txt"
+#line 561 "src/lexer-keywords.txt"
{"result", TokenType::Result},
-#line 399 "src/lexer-keywords.txt"
- {"i64.ge_u", TokenType::Compare, Opcode::I64GeU},
-#line 264 "src/lexer-keywords.txt"
- {"i32.ge_u", TokenType::Compare, Opcode::I32GeU},
-#line 403 "src/lexer-keywords.txt"
- {"i64.le_u", TokenType::Compare, Opcode::I64LeU},
-#line 268 "src/lexer-keywords.txt"
- {"i32.le_u", TokenType::Compare, Opcode::I32LeU},
-#line 398 "src/lexer-keywords.txt"
- {"i64.ge_s", TokenType::Compare, Opcode::I64GeS},
-#line 263 "src/lexer-keywords.txt"
- {"i32.ge_s", TokenType::Compare, Opcode::I32GeS},
-#line 402 "src/lexer-keywords.txt"
- {"i64.le_s", TokenType::Compare, Opcode::I64LeS},
-#line 267 "src/lexer-keywords.txt"
- {"i32.le_s", TokenType::Compare, Opcode::I32LeS},
-#line 401 "src/lexer-keywords.txt"
- {"i64.gt_u", TokenType::Compare, Opcode::I64GtU},
-#line 266 "src/lexer-keywords.txt"
- {"i32.gt_u", TokenType::Compare, Opcode::I32GtU},
-#line 412 "src/lexer-keywords.txt"
- {"i64.lt_u", TokenType::Compare, Opcode::I64LtU},
-#line 275 "src/lexer-keywords.txt"
- {"i32.lt_u", TokenType::Compare, Opcode::I32LtU},
-#line 400 "src/lexer-keywords.txt"
- {"i64.gt_s", TokenType::Compare, Opcode::I64GtS},
-#line 265 "src/lexer-keywords.txt"
- {"i32.gt_s", TokenType::Compare, Opcode::I32GtS},
-#line 411 "src/lexer-keywords.txt"
- {"i64.lt_s", TokenType::Compare, Opcode::I64LtS},
-#line 274 "src/lexer-keywords.txt"
- {"i32.lt_s", TokenType::Compare, Opcode::I32LtS},
-#line 544 "src/lexer-keywords.txt"
- {"return", TokenType::Return, Opcode::Return},
{""},
-#line 43 "src/lexer-keywords.txt"
- {"do", TokenType::Do},
- {""}, {""}, {""}, {""},
-#line 41 "src/lexer-keywords.txt"
- {"declare", TokenType::Declare},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 131 "src/lexer-keywords.txt"
- {"f64.nearest", TokenType::Unary, Opcode::F64Nearest},
-#line 74 "src/lexer-keywords.txt"
- {"f32.nearest", TokenType::Unary, Opcode::F32Nearest},
+#line 341 "src/lexer-keywords.txt"
+ {"i32x4.neg", TokenType::Unary, Opcode::I32X4Neg},
{""},
-#line 548 "src/lexer-keywords.txt"
- {"struct", Type::Struct, TokenType::Struct},
-#line 551 "src/lexer-keywords.txt"
- {"table.get", TokenType::TableGet, Opcode::TableGet},
+#line 322 "src/lexer-keywords.txt"
+ {"i32x4.ge_u", TokenType::Compare, Opcode::I32X4GeU},
+#line 342 "src/lexer-keywords.txt"
+ {"i32x4.ne", TokenType::Compare, Opcode::I32X4Ne},
+#line 326 "src/lexer-keywords.txt"
+ {"i32x4.le_u", TokenType::Compare, Opcode::I32X4LeU},
+#line 94 "src/lexer-keywords.txt"
+ {"f32x4.gt", TokenType::Compare, Opcode::F32X4Gt},
+#line 321 "src/lexer-keywords.txt"
+ {"i32x4.ge_s", TokenType::Compare, Opcode::I32X4GeS},
+#line 96 "src/lexer-keywords.txt"
+ {"f32x4.lt", TokenType::Compare, Opcode::F32X4Lt},
+#line 325 "src/lexer-keywords.txt"
+ {"i32x4.le_s", TokenType::Compare, Opcode::I32X4LeS},
{""},
-#line 554 "src/lexer-keywords.txt"
- {"table.set", TokenType::TableSet, Opcode::TableSet},
- {""}, {""},
-#line 349 "src/lexer-keywords.txt"
- {"i64.and", TokenType::Binary, Opcode::I64And},
-#line 226 "src/lexer-keywords.txt"
- {"i32.and", TokenType::Binary, Opcode::I32And},
+#line 324 "src/lexer-keywords.txt"
+ {"i32x4.gt_u", TokenType::Compare, Opcode::I32X4GtU},
+#line 577 "src/lexer-keywords.txt"
+ {"table", TokenType::Table},
+#line 334 "src/lexer-keywords.txt"
+ {"i32x4.lt_u", TokenType::Compare, Opcode::I32X4LtU},
+ {""},
+#line 323 "src/lexer-keywords.txt"
+ {"i32x4.gt_s", TokenType::Compare, Opcode::I32X4GtS},
+ {""},
+#line 333 "src/lexer-keywords.txt"
+ {"i32x4.lt_s", TokenType::Compare, Opcode::I32X4LtS},
{""}, {""},
-#line 112 "src/lexer-keywords.txt"
- {"f64.add", TokenType::Binary, Opcode::F64Add},
-#line 54 "src/lexer-keywords.txt"
- {"f32.add", TokenType::Binary, Opcode::F32Add},
-#line 348 "src/lexer-keywords.txt"
- {"i64.add", TokenType::Binary, Opcode::I64Add},
-#line 225 "src/lexer-keywords.txt"
- {"i32.add", TokenType::Binary, Opcode::I32Add},
- {""}, {""}, {""}, {""},
-#line 139 "src/lexer-keywords.txt"
- {"f64.trunc", TokenType::Unary, Opcode::F64Trunc},
-#line 81 "src/lexer-keywords.txt"
- {"f32.trunc", TokenType::Unary, Opcode::F32Trunc},
-#line 171 "src/lexer-keywords.txt"
- {"func", Type::FuncRef, TokenType::Func},
+#line 135 "src/lexer-keywords.txt"
+ {"f64.mul", TokenType::Binary, Opcode::F64Mul},
+#line 74 "src/lexer-keywords.txt"
+ {"f32.mul", TokenType::Binary, Opcode::F32Mul},
{""}, {""}, {""}, {""}, {""}, {""},
-#line 415 "src/lexer-keywords.txt"
+#line 431 "src/lexer-keywords.txt"
+ {"i64.mul", TokenType::Binary, Opcode::I64Mul},
+#line 288 "src/lexer-keywords.txt"
+ {"i32.mul", TokenType::Binary, Opcode::I32Mul},
+ {""}, {""},
+#line 100 "src/lexer-keywords.txt"
+ {"f32x4.nearest", TokenType::Unary, Opcode::F32X4Nearest},
+ {""},
+#line 99 "src/lexer-keywords.txt"
+ {"f32x4.mul", TokenType::Binary, Opcode::F32X4Mul},
+ {""},
+#line 36 "src/lexer-keywords.txt"
+ {"call", TokenType::Call, Opcode::Call},
+ {""},
+#line 433 "src/lexer-keywords.txt"
{"i64.or", TokenType::Binary, Opcode::I64Or},
-#line 278 "src/lexer-keywords.txt"
+#line 290 "src/lexer-keywords.txt"
{"i32.or", TokenType::Binary, Opcode::I32Or},
+ {""}, {""},
+#line 340 "src/lexer-keywords.txt"
+ {"i32x4.mul", TokenType::Binary, Opcode::I32X4Mul},
{""},
-#line 431 "src/lexer-keywords.txt"
- {"i64.trunc_f32_u", TokenType::Convert, Opcode::I64TruncF32U},
-#line 293 "src/lexer-keywords.txt"
- {"i32.trunc_f32_u", TokenType::Convert, Opcode::I32TruncF32U},
+#line 136 "src/lexer-keywords.txt"
+ {"f64.nearest", TokenType::Unary, Opcode::F64Nearest},
+#line 75 "src/lexer-keywords.txt"
+ {"f32.nearest", TokenType::Unary, Opcode::F32Nearest},
+#line 535 "src/lexer-keywords.txt"
+ {"local", TokenType::Local},
{""}, {""},
-#line 430 "src/lexer-keywords.txt"
- {"i64.trunc_f32_s", TokenType::Convert, Opcode::I64TruncF32S},
-#line 292 "src/lexer-keywords.txt"
- {"i32.trunc_f32_s", TokenType::Convert, Opcode::I32TruncF32S},
-#line 420 "src/lexer-keywords.txt"
- {"i64.rotl", TokenType::Binary, Opcode::I64Rotl},
-#line 283 "src/lexer-keywords.txt"
- {"i32.rotl", TokenType::Binary, Opcode::I32Rotl},
+#line 572 "src/lexer-keywords.txt"
+ {"table.get", TokenType::TableGet, Opcode::TableGet},
+#line 569 "src/lexer-keywords.txt"
+ {"struct", Type::Struct, TokenType::Struct},
+#line 575 "src/lexer-keywords.txt"
+ {"table.set", TokenType::TableSet, Opcode::TableSet},
+#line 86 "src/lexer-keywords.txt"
+ {"f32x4.ceil", TokenType::Unary, Opcode::F32X4Ceil},
+#line 180 "src/lexer-keywords.txt"
+ {"func", Type::FuncRef, TokenType::Func},
+#line 144 "src/lexer-keywords.txt"
+ {"f64.trunc", TokenType::Unary, Opcode::F64Trunc},
+#line 82 "src/lexer-keywords.txt"
+ {"f32.trunc", TokenType::Unary, Opcode::F32Trunc},
+#line 41 "src/lexer-keywords.txt"
+ {"declare", TokenType::Declare},
{""},
-#line 137 "src/lexer-keywords.txt"
+#line 142 "src/lexer-keywords.txt"
{"f64.store", TokenType::Store, Opcode::F64Store},
-#line 79 "src/lexer-keywords.txt"
+#line 80 "src/lexer-keywords.txt"
{"f32.store", TokenType::Store, Opcode::F32Store},
-#line 428 "src/lexer-keywords.txt"
+ {""}, {""}, {""},
+#line 438 "src/lexer-keywords.txt"
+ {"i64.rotl", TokenType::Binary, Opcode::I64Rotl},
+#line 295 "src/lexer-keywords.txt"
+ {"i32.rotl", TokenType::Binary, Opcode::I32Rotl},
+ {""},
+#line 446 "src/lexer-keywords.txt"
{"i64.store", TokenType::Store, Opcode::I64Store},
-#line 290 "src/lexer-keywords.txt"
+#line 302 "src/lexer-keywords.txt"
{"i32.store", TokenType::Store, Opcode::I32Store},
+ {""}, {""},
+#line 113 "src/lexer-keywords.txt"
+ {"f32x4.trunc", TokenType::Unary, Opcode::F32X4Trunc},
+ {""}, {""},
+#line 439 "src/lexer-keywords.txt"
+ {"i64.rotr", TokenType::Binary, Opcode::I64Rotr},
+#line 296 "src/lexer-keywords.txt"
+ {"i32.rotr", TokenType::Binary, Opcode::I32Rotr},
+ {""},
+#line 42 "src/lexer-keywords.txt"
+ {"delegate", TokenType::Delegate},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 532 "src/lexer-keywords.txt"
+ {"local.get", TokenType::LocalGet, Opcode::LocalGet},
+ {""},
+#line 533 "src/lexer-keywords.txt"
+ {"local.set", TokenType::LocalSet, Opcode::LocalSet},
+ {""},
+#line 534 "src/lexer-keywords.txt"
+ {"local.tee", TokenType::LocalTee, Opcode::LocalTee},
{""}, {""}, {""},
-#line 543 "src/lexer-keywords.txt"
- {"return_call", TokenType::ReturnCall, Opcode::ReturnCall},
+#line 367 "src/lexer-keywords.txt"
+ {"i64.and", TokenType::Binary, Opcode::I64And},
+#line 238 "src/lexer-keywords.txt"
+ {"i32.and", TokenType::Binary, Opcode::I32And},
+#line 85 "src/lexer-keywords.txt"
+ {"f32x4.add", TokenType::Binary, Opcode::F32X4Add},
+ {""},
+#line 566 "src/lexer-keywords.txt"
+ {"select", TokenType::Select, Opcode::Select},
+ {""}, {""}, {""}, {""}, {""},
+#line 315 "src/lexer-keywords.txt"
+ {"i32x4.add", TokenType::Binary, Opcode::I32X4Add},
+ {""}, {""},
+#line 119 "src/lexer-keywords.txt"
+ {"f64.const", TokenType::Const, Opcode::F64Const},
+#line 57 "src/lexer-keywords.txt"
+ {"f32.const", TokenType::Const, Opcode::F32Const},
+ {""},
+#line 109 "src/lexer-keywords.txt"
+ {"f32x4.replace_lane", TokenType::SimdLaneOp, Opcode::F32X4ReplaceLane},
+ {""}, {""}, {""}, {""},
+#line 405 "src/lexer-keywords.txt"
+ {"i64.const", TokenType::Const, Opcode::I64Const},
+#line 267 "src/lexer-keywords.txt"
+ {"i32.const", TokenType::Const, Opcode::I32Const},
+ {""},
+#line 344 "src/lexer-keywords.txt"
+ {"i32x4.replace_lane", TokenType::SimdLaneOp, Opcode::I32X4ReplaceLane},
{""}, {""}, {""},
-#line 130 "src/lexer-keywords.txt"
- {"f64.mul", TokenType::Binary, Opcode::F64Mul},
-#line 73 "src/lexer-keywords.txt"
- {"f32.mul", TokenType::Binary, Opcode::F32Mul},
-#line 413 "src/lexer-keywords.txt"
- {"i64.mul", TokenType::Binary, Opcode::I64Mul},
-#line 276 "src/lexer-keywords.txt"
- {"i32.mul", TokenType::Binary, Opcode::I32Mul},
+#line 117 "src/lexer-keywords.txt"
+ {"f64.add", TokenType::Binary, Opcode::F64Add},
+#line 55 "src/lexer-keywords.txt"
+ {"f32.add", TokenType::Binary, Opcode::F32Add},
+#line 107 "src/lexer-keywords.txt"
+ {"f32x4.relaxed_min", TokenType::Binary, Opcode::F32X4RelaxedMin},
{""}, {""}, {""}, {""}, {""},
-#line 535 "src/lexer-keywords.txt"
+#line 366 "src/lexer-keywords.txt"
+ {"i64.add", TokenType::Binary, Opcode::I64Add},
+#line 237 "src/lexer-keywords.txt"
+ {"i32.add", TokenType::Binary, Opcode::I32Add},
+ {""}, {""},
+#line 556 "src/lexer-keywords.txt"
{"ref.extern", TokenType::RefExtern},
-#line 126 "src/lexer-keywords.txt"
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""},
+#line 131 "src/lexer-keywords.txt"
{"f64.load", TokenType::Load, Opcode::F64Load},
-#line 69 "src/lexer-keywords.txt"
+#line 70 "src/lexer-keywords.txt"
{"f32.load", TokenType::Load, Opcode::F32Load},
-#line 410 "src/lexer-keywords.txt"
+ {""},
+#line 134 "src/lexer-keywords.txt"
+ {"f64.min", TokenType::Binary, Opcode::F64Min},
+#line 73 "src/lexer-keywords.txt"
+ {"f32.min", TokenType::Binary, Opcode::F32Min},
+ {""}, {""}, {""},
+#line 428 "src/lexer-keywords.txt"
{"i64.load", TokenType::Load, Opcode::I64Load},
-#line 273 "src/lexer-keywords.txt"
+#line 285 "src/lexer-keywords.txt"
{"i32.load", TokenType::Load, Opcode::I32Load},
-#line 36 "src/lexer-keywords.txt"
- {"call", TokenType::Call, Opcode::Call},
{""},
-#line 421 "src/lexer-keywords.txt"
- {"i64.rotr", TokenType::Binary, Opcode::I64Rotr},
-#line 284 "src/lexer-keywords.txt"
- {"i32.rotr", TokenType::Binary, Opcode::I32Rotr},
- {""}, {""},
-#line 514 "src/lexer-keywords.txt"
- {"local", TokenType::Local},
-#line 409 "src/lexer-keywords.txt"
- {"i64.load8_u", TokenType::Load, Opcode::I64Load8U},
-#line 272 "src/lexer-keywords.txt"
- {"i32.load8_u", TokenType::Load, Opcode::I32Load8U},
-#line 408 "src/lexer-keywords.txt"
- {"i64.load8_s", TokenType::Load, Opcode::I64Load8S},
-#line 271 "src/lexer-keywords.txt"
- {"i32.load8_s", TokenType::Load, Opcode::I32Load8S},
-#line 114 "src/lexer-keywords.txt"
- {"f64.const", TokenType::Const, Opcode::F64Const},
+#line 118 "src/lexer-keywords.txt"
+ {"f64.ceil", TokenType::Unary, Opcode::F64Ceil},
#line 56 "src/lexer-keywords.txt"
- {"f32.const", TokenType::Const, Opcode::F32Const},
-#line 387 "src/lexer-keywords.txt"
- {"i64.const", TokenType::Const, Opcode::I64Const},
-#line 255 "src/lexer-keywords.txt"
- {"i32.const", TokenType::Const, Opcode::I32Const},
- {""}, {""}, {""},
-#line 395 "src/lexer-keywords.txt"
- {"i64.extend8_s", TokenType::Unary, Opcode::I64Extend8S},
-#line 262 "src/lexer-keywords.txt"
- {"i32.extend8_s", TokenType::Unary, Opcode::I32Extend8S},
+ {"f32.ceil", TokenType::Unary, Opcode::F32Ceil},
+#line 98 "src/lexer-keywords.txt"
+ {"f32x4.min", TokenType::Binary, Opcode::F32X4Min},
{""},
-#line 42 "src/lexer-keywords.txt"
- {"delegate", TokenType::Delegate},
-#line 469 "src/lexer-keywords.txt"
+#line 488 "src/lexer-keywords.txt"
{"i64.xor", TokenType::Binary, Opcode::I64Xor},
-#line 347 "src/lexer-keywords.txt"
+#line 365 "src/lexer-keywords.txt"
{"i32.xor", TokenType::Binary, Opcode::I32Xor},
-#line 140 "src/lexer-keywords.txt"
- {"f64", Type::F64},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 576 "src/lexer-keywords.txt"
+ {"table.size", TokenType::TableSize, Opcode::TableSize},
+ {""}, {""},
+#line 97 "src/lexer-keywords.txt"
+ {"f32x4.max", TokenType::Binary, Opcode::F32X4Max},
{""},
-#line 438 "src/lexer-keywords.txt"
- {"i64", Type::I64},
+#line 343 "src/lexer-keywords.txt"
+ {"i32x4.relaxed_laneselect", TokenType::Ternary, Opcode::I32X4RelaxedLaneSelect},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""},
+#line 574 "src/lexer-keywords.txt"
+ {"table.init", TokenType::TableInit, Opcode::TableInit},
{""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 417 "src/lexer-keywords.txt"
+ {"i64.ge_u", TokenType::Compare, Opcode::I64GeU},
+#line 276 "src/lexer-keywords.txt"
+ {"i32.ge_u", TokenType::Compare, Opcode::I32GeU},
+#line 421 "src/lexer-keywords.txt"
+ {"i64.le_u", TokenType::Compare, Opcode::I64LeU},
+#line 280 "src/lexer-keywords.txt"
+ {"i32.le_u", TokenType::Compare, Opcode::I32LeU},
+#line 416 "src/lexer-keywords.txt"
+ {"i64.ge_s", TokenType::Compare, Opcode::I64GeS},
+#line 275 "src/lexer-keywords.txt"
+ {"i32.ge_s", TokenType::Compare, Opcode::I32GeS},
+#line 420 "src/lexer-keywords.txt"
+ {"i64.le_s", TokenType::Compare, Opcode::I64LeS},
+#line 279 "src/lexer-keywords.txt"
+ {"i32.le_s", TokenType::Compare, Opcode::I32LeS},
#line 419 "src/lexer-keywords.txt"
- {"i64.rem_u", TokenType::Binary, Opcode::I64RemU},
-#line 282 "src/lexer-keywords.txt"
- {"i32.rem_u", TokenType::Binary, Opcode::I32RemU},
+ {"i64.gt_u", TokenType::Compare, Opcode::I64GtU},
+#line 278 "src/lexer-keywords.txt"
+ {"i32.gt_u", TokenType::Compare, Opcode::I32GtU},
+#line 430 "src/lexer-keywords.txt"
+ {"i64.lt_u", TokenType::Compare, Opcode::I64LtU},
+#line 287 "src/lexer-keywords.txt"
+ {"i32.lt_u", TokenType::Compare, Opcode::I32LtU},
#line 418 "src/lexer-keywords.txt"
- {"i64.rem_s", TokenType::Binary, Opcode::I64RemS},
-#line 281 "src/lexer-keywords.txt"
- {"i32.rem_s", TokenType::Binary, Opcode::I32RemS},
-#line 511 "src/lexer-keywords.txt"
- {"local.get", TokenType::LocalGet, Opcode::LocalGet},
- {""},
-#line 512 "src/lexer-keywords.txt"
- {"local.set", TokenType::LocalSet, Opcode::LocalSet},
- {""}, {""}, {""},
-#line 513 "src/lexer-keywords.txt"
- {"local.tee", TokenType::LocalTee, Opcode::LocalTee},
- {""}, {""}, {""},
-#line 545 "src/lexer-keywords.txt"
- {"select", TokenType::Select, Opcode::Select},
+ {"i64.gt_s", TokenType::Compare, Opcode::I64GtS},
+#line 277 "src/lexer-keywords.txt"
+ {"i32.gt_s", TokenType::Compare, Opcode::I32GtS},
+#line 429 "src/lexer-keywords.txt"
+ {"i64.lt_s", TokenType::Compare, Opcode::I64LtS},
+#line 286 "src/lexer-keywords.txt"
+ {"i32.lt_s", TokenType::Compare, Opcode::I32LtS},
{""}, {""}, {""}, {""}, {""}, {""},
-#line 92 "src/lexer-keywords.txt"
- {"f32x4.ge", TokenType::Compare, Opcode::F32X4Ge},
-#line 309 "src/lexer-keywords.txt"
- {"i32x4.ge_u", TokenType::Compare, Opcode::I32X4GeU},
-#line 94 "src/lexer-keywords.txt"
- {"f32x4.le", TokenType::Compare, Opcode::F32X4Le},
-#line 313 "src/lexer-keywords.txt"
- {"i32x4.le_u", TokenType::Compare, Opcode::I32X4LeU},
- {""},
-#line 308 "src/lexer-keywords.txt"
- {"i32x4.ge_s", TokenType::Compare, Opcode::I32X4GeS},
- {""},
-#line 312 "src/lexer-keywords.txt"
- {"i32x4.le_s", TokenType::Compare, Opcode::I32X4LeS},
- {""},
-#line 311 "src/lexer-keywords.txt"
- {"i32x4.gt_u", TokenType::Compare, Opcode::I32X4GtU},
- {""},
-#line 317 "src/lexer-keywords.txt"
- {"i32x4.lt_u", TokenType::Compare, Opcode::I32X4LtU},
- {""},
-#line 310 "src/lexer-keywords.txt"
- {"i32x4.gt_s", TokenType::Compare, Opcode::I32X4GtS},
+#line 91 "src/lexer-keywords.txt"
+ {"f32x4.extract_lane", TokenType::SimdLaneOp, Opcode::F32X4ExtractLane},
{""},
-#line 316 "src/lexer-keywords.txt"
- {"i32x4.lt_s", TokenType::Compare, Opcode::I32X4LtS},
-#line 93 "src/lexer-keywords.txt"
- {"f32x4.gt", TokenType::Compare, Opcode::F32X4Gt},
-#line 100 "src/lexer-keywords.txt"
- {"f32x4.neg", TokenType::Unary, Opcode::F32X4Neg},
-#line 95 "src/lexer-keywords.txt"
- {"f32x4.lt", TokenType::Compare, Opcode::F32X4Lt},
-#line 324 "src/lexer-keywords.txt"
- {"i32x4.neg", TokenType::Unary, Opcode::I32X4Neg},
+#line 403 "src/lexer-keywords.txt"
+ {"i64.atomic.store", TokenType::AtomicStore, Opcode::I64AtomicStore},
+#line 265 "src/lexer-keywords.txt"
+ {"i32.atomic.store", TokenType::AtomicStore, Opcode::I32AtomicStore},
+#line 404 "src/lexer-keywords.txt"
+ {"i64.clz", TokenType::Unary, Opcode::I64Clz},
+#line 266 "src/lexer-keywords.txt"
+ {"i32.clz", TokenType::Unary, Opcode::I32Clz},
{""}, {""},
-#line 101 "src/lexer-keywords.txt"
- {"f32x4.ne", TokenType::Compare, Opcode::F32X4Ne},
- {""},
-#line 325 "src/lexer-keywords.txt"
- {"i32x4.ne", TokenType::Compare, Opcode::I32X4Ne},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 128 "src/lexer-keywords.txt"
- {"f64.max", TokenType::Binary, Opcode::F64Max},
-#line 71 "src/lexer-keywords.txt"
- {"f32.max", TokenType::Binary, Opcode::F32Max},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 85 "src/lexer-keywords.txt"
- {"f32x4.ceil", TokenType::Unary, Opcode::F32X4Ceil},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 84 "src/lexer-keywords.txt"
- {"f32x4.add", TokenType::Binary, Opcode::F32X4Add},
+#line 320 "src/lexer-keywords.txt"
+ {"i32x4.extract_lane", TokenType::SimdLaneOp, Opcode::I32X4ExtractLane},
+ {""}, {""}, {""}, {""}, {""},
+#line 406 "src/lexer-keywords.txt"
+ {"i64.ctz", TokenType::Unary, Opcode::I64Ctz},
+#line 268 "src/lexer-keywords.txt"
+ {"i32.ctz", TokenType::Unary, Opcode::I32Ctz},
+#line 108 "src/lexer-keywords.txt"
+ {"f32x4.relaxed_nmadd", TokenType::Ternary, Opcode::F32X4RelaxedNmadd},
{""},
-#line 303 "src/lexer-keywords.txt"
- {"i32x4.add", TokenType::Binary, Opcode::I32X4Add},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 113 "src/lexer-keywords.txt"
- {"f64.ceil", TokenType::Unary, Opcode::F64Ceil},
-#line 55 "src/lexer-keywords.txt"
- {"f32.ceil", TokenType::Unary, Opcode::F32Ceil},
+#line 396 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw.or", TokenType::AtomicRmw, Opcode::I64AtomicRmwOr},
+#line 259 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw.or", TokenType::AtomicRmw, Opcode::I32AtomicRmwOr},
+ {""}, {""}, {""},
+#line 105 "src/lexer-keywords.txt"
+ {"f32x4.relaxed_madd", TokenType::Ternary, Opcode::F32X4RelaxedMadd},
{""},
-#line 99 "src/lexer-keywords.txt"
- {"f32x4.nearest", TokenType::Unary, Opcode::F32X4Nearest},
+#line 330 "src/lexer-keywords.txt"
+ {"i32x4.relaxed_trunc_f64x2_u_zero", TokenType::Unary, Opcode::I32X4RelaxedTruncF64X2UZero},
+#line 383 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw32.sub_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw32SubU},
+#line 329 "src/lexer-keywords.txt"
+ {"i32x4.relaxed_trunc_f64x2_s_zero", TokenType::Unary, Opcode::I32X4RelaxedTruncF64X2SZero},
+#line 449 "src/lexer-keywords.txt"
+ {"i64.trunc_f32_u", TokenType::Convert, Opcode::I64TruncF32U},
+#line 305 "src/lexer-keywords.txt"
+ {"i32.trunc_f32_u", TokenType::Convert, Opcode::I32TruncF32U},
+ {""}, {""},
+#line 448 "src/lexer-keywords.txt"
+ {"i64.trunc_f32_s", TokenType::Convert, Opcode::I64TruncF32S},
#line 304 "src/lexer-keywords.txt"
- {"i32x4.all_true", TokenType::Unary, Opcode::I32X4AllTrue},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 433 "src/lexer-keywords.txt"
- {"i64.trunc_f64_u", TokenType::Convert, Opcode::I64TruncF64U},
-#line 295 "src/lexer-keywords.txt"
- {"i32.trunc_f64_u", TokenType::Convert, Opcode::I32TruncF64U},
-#line 542 "src/lexer-keywords.txt"
- {"return_call_indirect", TokenType::ReturnCallIndirect, Opcode::ReturnCallIndirect},
+ {"i32.trunc_f32_s", TokenType::Convert, Opcode::I32TruncF32S},
{""},
-#line 432 "src/lexer-keywords.txt"
- {"i64.trunc_f64_s", TokenType::Convert, Opcode::I64TruncF64S},
+#line 437 "src/lexer-keywords.txt"
+ {"i64.rem_u", TokenType::Binary, Opcode::I64RemU},
#line 294 "src/lexer-keywords.txt"
- {"i32.trunc_f64_s", TokenType::Convert, Opcode::I32TruncF64S},
-#line 537 "src/lexer-keywords.txt"
- {"ref.is_null", TokenType::RefIsNull, Opcode::RefIsNull},
+ {"i32.rem_u", TokenType::Binary, Opcode::I32RemU},
+#line 436 "src/lexer-keywords.txt"
+ {"i64.rem_s", TokenType::Binary, Opcode::I64RemS},
+#line 293 "src/lexer-keywords.txt"
+ {"i32.rem_s", TokenType::Binary, Opcode::I32RemS},
+#line 83 "src/lexer-keywords.txt"
+ {"f32", Type::F32},
+ {""}, {""},
+#line 316 "src/lexer-keywords.txt"
+ {"i32x4.all_true", TokenType::Unary, Opcode::I32X4AllTrue},
{""}, {""}, {""}, {""},
-#line 555 "src/lexer-keywords.txt"
- {"table.size", TokenType::TableSize, Opcode::TableSize},
- {""},
-#line 108 "src/lexer-keywords.txt"
- {"f32x4.trunc", TokenType::Unary, Opcode::F32X4Trunc},
- {""},
-#line 405 "src/lexer-keywords.txt"
- {"i64.load16_u", TokenType::Load, Opcode::I64Load16U},
-#line 270 "src/lexer-keywords.txt"
- {"i32.load16_u", TokenType::Load, Opcode::I32Load16U},
+#line 312 "src/lexer-keywords.txt"
+ {"i32", Type::I32},
+#line 564 "src/lexer-keywords.txt"
+ {"return_call", TokenType::ReturnCall, Opcode::ReturnCall},
+ {""}, {""}, {""},
+#line 133 "src/lexer-keywords.txt"
+ {"f64.max", TokenType::Binary, Opcode::F64Max},
+#line 72 "src/lexer-keywords.txt"
+ {"f32.max", TokenType::Binary, Opcode::F32Max},
{""}, {""},
-#line 404 "src/lexer-keywords.txt"
- {"i64.load16_s", TokenType::Load, Opcode::I64Load16S},
-#line 269 "src/lexer-keywords.txt"
- {"i32.load16_s", TokenType::Load, Opcode::I32Load16S},
-#line 385 "src/lexer-keywords.txt"
- {"i64.atomic.store", TokenType::AtomicStore, Opcode::I64AtomicStore},
-#line 253 "src/lexer-keywords.txt"
- {"i32.atomic.store", TokenType::AtomicStore, Opcode::I32AtomicStore},
-#line 393 "src/lexer-keywords.txt"
- {"i64.extend16_s", TokenType::Unary, Opcode::I64Extend16S},
-#line 261 "src/lexer-keywords.txt"
- {"i32.extend16_s", TokenType::Unary, Opcode::I32Extend16S},
+#line 445 "src/lexer-keywords.txt"
+ {"i64.store8", TokenType::Store, Opcode::I64Store8},
+#line 301 "src/lexer-keywords.txt"
+ {"i32.store8", TokenType::Store, Opcode::I32Store8},
+#line 380 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw32.and_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw32AndU},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 82 "src/lexer-keywords.txt"
- {"f32", Type::F32},
+#line 336 "src/lexer-keywords.txt"
+ {"i32x4.max_u", TokenType::Binary, Opcode::I32X4MaxU},
{""},
-#line 300 "src/lexer-keywords.txt"
- {"i32", Type::I32},
+#line 335 "src/lexer-keywords.txt"
+ {"i32x4.max_s", TokenType::Binary, Opcode::I32X4MaxS},
{""}, {""}, {""},
-#line 104 "src/lexer-keywords.txt"
- {"f32x4.replace_lane", TokenType::SimdLaneOp, Opcode::F32X4ReplaceLane},
-#line 365 "src/lexer-keywords.txt"
- {"i64.atomic.rmw32.sub_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw32SubU},
-#line 326 "src/lexer-keywords.txt"
- {"i32x4.replace_lane", TokenType::SimdLaneOp, Opcode::I32X4ReplaceLane},
-#line 98 "src/lexer-keywords.txt"
- {"f32x4.mul", TokenType::Binary, Opcode::F32X4Mul},
- {""},
-#line 323 "src/lexer-keywords.txt"
- {"i32x4.mul", TokenType::Binary, Opcode::I32X4Mul},
- {""},
-#line 553 "src/lexer-keywords.txt"
- {"table.init", TokenType::TableInit, Opcode::TableInit},
- {""}, {""}, {""}, {""}, {""},
-#line 353 "src/lexer-keywords.txt"
+#line 371 "src/lexer-keywords.txt"
{"i64.atomic.load", TokenType::AtomicLoad, Opcode::I64AtomicLoad},
-#line 229 "src/lexer-keywords.txt"
+#line 241 "src/lexer-keywords.txt"
{"i32.atomic.load", TokenType::AtomicLoad, Opcode::I32AtomicLoad},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 378 "src/lexer-keywords.txt"
- {"i64.atomic.rmw.or", TokenType::AtomicRmw, Opcode::I64AtomicRmwOr},
-#line 247 "src/lexer-keywords.txt"
- {"i32.atomic.rmw.or", TokenType::AtomicRmw, Opcode::I32AtomicRmwOr},
- {""},
-#line 362 "src/lexer-keywords.txt"
- {"i64.atomic.rmw32.and_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw32AndU},
-#line 352 "src/lexer-keywords.txt"
- {"i64.atomic.load8_u", TokenType::AtomicLoad, Opcode::I64AtomicLoad8U},
-#line 228 "src/lexer-keywords.txt"
- {"i32.atomic.load8_u", TokenType::AtomicLoad, Opcode::I32AtomicLoad8U},
{""}, {""}, {""},
-#line 361 "src/lexer-keywords.txt"
- {"i64.atomic.rmw32.add_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw32AddU},
- {""},
-#line 148 "src/lexer-keywords.txt"
+#line 153 "src/lexer-keywords.txt"
{"f64x2.ge", TokenType::Compare, Opcode::F64X2Ge},
-#line 110 "src/lexer-keywords.txt"
- {"f32x4", TokenType::F32X4},
-#line 150 "src/lexer-keywords.txt"
- {"f64x2.le", TokenType::Compare, Opcode::F64X2Le},
-#line 338 "src/lexer-keywords.txt"
- {"i32x4", TokenType::I32X4},
{""},
-#line 449 "src/lexer-keywords.txt"
- {"i64x2.ge_s", TokenType::Binary, Opcode::I64X2GeS},
+#line 155 "src/lexer-keywords.txt"
+ {"f64x2.le", TokenType::Compare, Opcode::F64X2Le},
+#line 161 "src/lexer-keywords.txt"
+ {"f64x2.neg", TokenType::Unary, Opcode::F64X2Neg},
+#line 399 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw.xor", TokenType::AtomicRmw, Opcode::I64AtomicRmwXor},
+#line 262 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw.xor", TokenType::AtomicRmw, Opcode::I32AtomicRmwXor},
+#line 162 "src/lexer-keywords.txt"
+ {"f64x2.ne", TokenType::Compare, Opcode::F64X2Ne},
{""},
-#line 448 "src/lexer-keywords.txt"
- {"i64x2.le_s", TokenType::Binary, Opcode::I64X2LeS},
+#line 382 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw32.or_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw32OrU},
{""}, {""},
-#line 319 "src/lexer-keywords.txt"
- {"i32x4.max_u", TokenType::Binary, Opcode::I32X4MaxU},
- {""},
-#line 318 "src/lexer-keywords.txt"
- {"i32x4.max_s", TokenType::Binary, Opcode::I32X4MaxS},
-#line 447 "src/lexer-keywords.txt"
- {"i64x2.gt_s", TokenType::Binary, Opcode::I64X2GtS},
- {""},
-#line 446 "src/lexer-keywords.txt"
- {"i64x2.lt_s", TokenType::Binary, Opcode::I64X2LtS},
-#line 149 "src/lexer-keywords.txt"
+#line 469 "src/lexer-keywords.txt"
+ {"i64x2.neg", TokenType::Unary, Opcode::I64X2Neg},
+ {""}, {""},
+#line 463 "src/lexer-keywords.txt"
+ {"i64x2.ne", TokenType::Binary, Opcode::I64X2Ne},
+#line 379 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw32.add_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw32AddU},
+#line 154 "src/lexer-keywords.txt"
{"f64x2.gt", TokenType::Compare, Opcode::F64X2Gt},
+#line 467 "src/lexer-keywords.txt"
+ {"i64x2.ge_s", TokenType::Binary, Opcode::I64X2GeS},
#line 156 "src/lexer-keywords.txt"
- {"f64x2.neg", TokenType::Unary, Opcode::F64X2Neg},
-#line 151 "src/lexer-keywords.txt"
{"f64x2.lt", TokenType::Compare, Opcode::F64X2Lt},
-#line 451 "src/lexer-keywords.txt"
- {"i64x2.neg", TokenType::Unary, Opcode::I64X2Neg},
-#line 509 "src/lexer-keywords.txt"
- {"invoke", TokenType::Invoke},
-#line 90 "src/lexer-keywords.txt"
- {"f32x4.extract_lane", TokenType::SimdLaneOp, Opcode::F32X4ExtractLane},
-#line 157 "src/lexer-keywords.txt"
- {"f64x2.ne", TokenType::Compare, Opcode::F64X2Ne},
-#line 307 "src/lexer-keywords.txt"
- {"i32x4.extract_lane", TokenType::SimdLaneOp, Opcode::I32X4ExtractLane},
-#line 445 "src/lexer-keywords.txt"
- {"i64x2.ne", TokenType::Binary, Opcode::I64X2Ne},
- {""},
-#line 397 "src/lexer-keywords.txt"
- {"i64.extend_i32_u", TokenType::Convert, Opcode::I64ExtendI32U},
-#line 96 "src/lexer-keywords.txt"
- {"f32x4.max", TokenType::Binary, Opcode::F32X4Max},
-#line 396 "src/lexer-keywords.txt"
- {"i64.extend_i32_s", TokenType::Convert, Opcode::I64ExtendI32S},
- {""},
-#line 129 "src/lexer-keywords.txt"
- {"f64.min", TokenType::Binary, Opcode::F64Min},
-#line 72 "src/lexer-keywords.txt"
- {"f32.min", TokenType::Binary, Opcode::F32Min},
+#line 466 "src/lexer-keywords.txt"
+ {"i64x2.le_s", TokenType::Binary, Opcode::I64X2LeS},
{""}, {""}, {""},
-#line 49 "src/lexer-keywords.txt"
- {"tag", TokenType::Tag},
- {""},
-#line 376 "src/lexer-keywords.txt"
+#line 394 "src/lexer-keywords.txt"
{"i64.atomic.rmw.and", TokenType::AtomicRmw, Opcode::I64AtomicRmwAnd},
-#line 245 "src/lexer-keywords.txt"
+#line 257 "src/lexer-keywords.txt"
{"i32.atomic.rmw.and", TokenType::AtomicRmw, Opcode::I32AtomicRmwAnd},
-#line 560 "src/lexer-keywords.txt"
- {"type", TokenType::Type},
-#line 143 "src/lexer-keywords.txt"
- {"f64x2.ceil", TokenType::Unary, Opcode::F64X2Ceil},
- {""}, {""},
-#line 375 "src/lexer-keywords.txt"
- {"i64.atomic.rmw.add", TokenType::AtomicRmw, Opcode::I64AtomicRmwAdd},
-#line 244 "src/lexer-keywords.txt"
- {"i32.atomic.rmw.add", TokenType::AtomicRmw, Opcode::I32AtomicRmwAdd},
+#line 465 "src/lexer-keywords.txt"
+ {"i64x2.gt_s", TokenType::Binary, Opcode::I64X2GtS},
{""},
-#line 427 "src/lexer-keywords.txt"
- {"i64.store8", TokenType::Store, Opcode::I64Store8},
-#line 289 "src/lexer-keywords.txt"
- {"i32.store8", TokenType::Store, Opcode::I32Store8},
-#line 142 "src/lexer-keywords.txt"
- {"f64x2.add", TokenType::Binary, Opcode::F64X2Add},
-#line 172 "src/lexer-keywords.txt"
- {"get", TokenType::Get},
-#line 439 "src/lexer-keywords.txt"
- {"i64x2.add", TokenType::Binary, Opcode::I64X2Add},
+#line 464 "src/lexer-keywords.txt"
+ {"i64x2.lt_s", TokenType::Binary, Opcode::I64X2LtS},
{""}, {""}, {""}, {""},
-#line 364 "src/lexer-keywords.txt"
- {"i64.atomic.rmw32.or_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw32OrU},
-#line 422 "src/lexer-keywords.txt"
- {"i64.shl", TokenType::Binary, Opcode::I64Shl},
-#line 285 "src/lexer-keywords.txt"
- {"i32.shl", TokenType::Binary, Opcode::I32Shl},
- {""}, {""},
-#line 155 "src/lexer-keywords.txt"
- {"f64x2.nearest", TokenType::Unary, Opcode::F64X2Nearest},
-#line 452 "src/lexer-keywords.txt"
- {"i64x2.all_true", TokenType::Unary, Opcode::I64X2AllTrue},
- {""},
-#line 366 "src/lexer-keywords.txt"
- {"i64.atomic.rmw32.xchg_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw32XchgU},
- {""},
-#line 381 "src/lexer-keywords.txt"
- {"i64.atomic.rmw.xor", TokenType::AtomicRmw, Opcode::I64AtomicRmwXor},
-#line 250 "src/lexer-keywords.txt"
- {"i32.atomic.rmw.xor", TokenType::AtomicRmw, Opcode::I32AtomicRmwXor},
-#line 508 "src/lexer-keywords.txt"
- {"input", TokenType::Input},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 164 "src/lexer-keywords.txt"
- {"f64x2.trunc", TokenType::Unary, Opcode::F64X2Trunc},
- {""}, {""}, {""},
-#line 507 "src/lexer-keywords.txt"
- {"import", TokenType::Import},
- {""}, {""}, {""},
+#line 558 "src/lexer-keywords.txt"
+ {"ref.is_null", TokenType::RefIsNull, Opcode::RefIsNull},
+#line 50 "src/lexer-keywords.txt"
+ {"tag", TokenType::Tag},
+#line 427 "src/lexer-keywords.txt"
+ {"i64.load8_u", TokenType::Load, Opcode::I64Load8U},
+#line 284 "src/lexer-keywords.txt"
+ {"i32.load8_u", TokenType::Load, Opcode::I32Load8U},
#line 426 "src/lexer-keywords.txt"
- {"i64.store32", TokenType::Store, Opcode::I64Store32},
- {""},
-#line 367 "src/lexer-keywords.txt"
- {"i64.atomic.rmw32.xor_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw32XorU},
-#line 407 "src/lexer-keywords.txt"
- {"i64.load32_u", TokenType::Load, Opcode::I64Load32U},
-#line 136 "src/lexer-keywords.txt"
- {"f64.sqrt", TokenType::Unary, Opcode::F64Sqrt},
-#line 78 "src/lexer-keywords.txt"
- {"f32.sqrt", TokenType::Unary, Opcode::F32Sqrt},
- {""},
-#line 406 "src/lexer-keywords.txt"
- {"i64.load32_s", TokenType::Load, Opcode::I64Load32S},
- {""},
-#line 563 "src/lexer-keywords.txt"
- {"v128.and", TokenType::Binary, Opcode::V128And},
- {""},
-#line 394 "src/lexer-keywords.txt"
- {"i64.extend32_s", TokenType::Unary, Opcode::I64Extend32S},
- {""},
-#line 424 "src/lexer-keywords.txt"
- {"i64.shr_u", TokenType::Binary, Opcode::I64ShrU},
-#line 287 "src/lexer-keywords.txt"
- {"i32.shr_u", TokenType::Binary, Opcode::I32ShrU},
-#line 423 "src/lexer-keywords.txt"
- {"i64.shr_s", TokenType::Binary, Opcode::I64ShrS},
-#line 286 "src/lexer-keywords.txt"
- {"i32.shr_s", TokenType::Binary, Opcode::I32ShrS},
+ {"i64.load8_s", TokenType::Load, Opcode::I64Load8S},
+#line 283 "src/lexer-keywords.txt"
+ {"i32.load8_s", TokenType::Load, Opcode::I32Load8S},
+ {""}, {""},
+#line 106 "src/lexer-keywords.txt"
+ {"f32x4.relaxed_max", TokenType::Binary, Opcode::F32X4RelaxedMax},
{""},
-#line 539 "src/lexer-keywords.txt"
- {"register", TokenType::Register},
#line 160 "src/lexer-keywords.txt"
- {"f64x2.replace_lane", TokenType::SimdLaneOp, Opcode::F64X2ReplaceLane},
+ {"f64x2.nearest", TokenType::Unary, Opcode::F64X2Nearest},
{""},
-#line 458 "src/lexer-keywords.txt"
- {"i64x2.replace_lane", TokenType::SimdLaneOp, Opcode::I64X2ReplaceLane},
-#line 154 "src/lexer-keywords.txt"
+#line 159 "src/lexer-keywords.txt"
{"f64x2.mul", TokenType::Binary, Opcode::F64X2Mul},
- {""},
-#line 443 "src/lexer-keywords.txt"
+#line 181 "src/lexer-keywords.txt"
+ {"get", TokenType::Get},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 461 "src/lexer-keywords.txt"
{"i64x2.mul", TokenType::Binary, Opcode::I64X2Mul},
- {""}, {""},
-#line 38 "src/lexer-keywords.txt"
- {"catch_all", TokenType::CatchAll, Opcode::CatchAll},
- {""}, {""},
-#line 568 "src/lexer-keywords.txt"
- {"v128.or", TokenType::Binary, Opcode::V128Or},
- {""}, {""},
-#line 572 "src/lexer-keywords.txt"
- {"v128.store", TokenType::Store, Opcode::V128Store},
-#line 566 "src/lexer-keywords.txt"
- {"v128.load", TokenType::Load, Opcode::V128Load},
{""}, {""}, {""}, {""}, {""}, {""},
-#line 573 "src/lexer-keywords.txt"
- {"v128", Type::V128},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 534 "src/lexer-keywords.txt"
- {"quote", TokenType::Quote},
-#line 567 "src/lexer-keywords.txt"
- {"v128.not", TokenType::Unary, Opcode::V128Not},
+#line 393 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw.add", TokenType::AtomicRmw, Opcode::I64AtomicRmwAdd},
+#line 256 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw.add", TokenType::AtomicRmw, Opcode::I32AtomicRmwAdd},
{""},
-#line 531 "src/lexer-keywords.txt"
- {"output", TokenType::Output},
- {""}, {""},
-#line 369 "src/lexer-keywords.txt"
- {"i64.atomic.rmw8.and_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw8AndU},
-#line 238 "src/lexer-keywords.txt"
- {"i32.atomic.rmw8.and_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw8AndU},
+#line 148 "src/lexer-keywords.txt"
+ {"f64x2.ceil", TokenType::Unary, Opcode::F64X2Ceil},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 440 "src/lexer-keywords.txt"
+ {"i64.shl", TokenType::Binary, Opcode::I64Shl},
+#line 297 "src/lexer-keywords.txt"
+ {"i32.shl", TokenType::Binary, Opcode::I32Shl},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 173 "src/lexer-keywords.txt"
+ {"f64x2.trunc", TokenType::Unary, Opcode::F64X2Trunc},
{""},
-#line 530 "src/lexer-keywords.txt"
- {"offset", TokenType::Offset},
- {""}, {""},
-#line 368 "src/lexer-keywords.txt"
- {"i64.atomic.rmw8.add_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw8AddU},
-#line 237 "src/lexer-keywords.txt"
- {"i32.atomic.rmw8.add_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw8AddU},
- {""}, {""}, {""}, {""},
-#line 30 "src/lexer-keywords.txt"
- {"block", TokenType::Block, Opcode::Block},
+#line 338 "src/lexer-keywords.txt"
+ {"i32x4.min_u", TokenType::Binary, Opcode::I32X4MinU},
{""},
-#line 528 "src/lexer-keywords.txt"
- {"nan:canonical", TokenType::NanCanonical},
+#line 337 "src/lexer-keywords.txt"
+ {"i32x4.min_s", TokenType::Binary, Opcode::I32X4MinS},
+ {""},
+#line 345 "src/lexer-keywords.txt"
+ {"i32x4.shl", TokenType::Binary, Opcode::I32X4Shl},
{""}, {""},
-#line 146 "src/lexer-keywords.txt"
- {"f64x2.extract_lane", TokenType::SimdLaneOp, Opcode::F64X2ExtractLane},
-#line 562 "src/lexer-keywords.txt"
- {"v128.andnot", TokenType::Binary, Opcode::V128Andnot},
-#line 440 "src/lexer-keywords.txt"
- {"i64x2.extract_lane", TokenType::SimdLaneOp, Opcode::I64X2ExtractLane},
-#line 350 "src/lexer-keywords.txt"
- {"i64.atomic.load16_u", TokenType::AtomicLoad, Opcode::I64AtomicLoad16U},
-#line 227 "src/lexer-keywords.txt"
- {"i32.atomic.load16_u", TokenType::AtomicLoad, Opcode::I32AtomicLoad16U},
-#line 442 "src/lexer-keywords.txt"
- {"v128.load32x2_u", TokenType::Load, Opcode::V128Load32X2U},
-#line 152 "src/lexer-keywords.txt"
- {"f64x2.max", TokenType::Binary, Opcode::F64X2Max},
+#line 444 "src/lexer-keywords.txt"
+ {"i64.store32", TokenType::Store, Opcode::I64Store32},
+#line 548 "src/lexer-keywords.txt"
+ {"nan:arithmetic", TokenType::NanArithmetic},
{""}, {""},
-#line 441 "src/lexer-keywords.txt"
- {"v128.load32x2_s", TokenType::Load, Opcode::V128Load32X2S},
-#line 581 "src/lexer-keywords.txt"
- {"v128.load32_lane", TokenType::SimdLoadLane, Opcode::V128Load32Lane},
- {""}, {""}, {""},
-#line 34 "src/lexer-keywords.txt"
- {"call_indirect", TokenType::CallIndirect, Opcode::CallIndirect},
+#line 413 "src/lexer-keywords.txt"
+ {"i64.extend8_s", TokenType::Unary, Opcode::I64Extend8S},
+#line 274 "src/lexer-keywords.txt"
+ {"i32.extend8_s", TokenType::Unary, Opcode::I32Extend8S},
+ {""}, {""}, {""}, {""}, {""},
+#line 560 "src/lexer-keywords.txt"
+ {"register", TokenType::Register},
{""},
-#line 576 "src/lexer-keywords.txt"
- {"v128.load32_splat", TokenType::Load, Opcode::V128Load32Splat},
-#line 574 "src/lexer-keywords.txt"
- {"v128.xor", TokenType::Binary, Opcode::V128Xor},
+#line 549 "src/lexer-keywords.txt"
+ {"nan:canonical", TokenType::NanCanonical},
{""},
-#line 187 "src/lexer-keywords.txt"
+#line 213 "src/lexer-keywords.txt"
+ {"i16x8.neg", TokenType::Unary, Opcode::I16X8Neg},
+#line 147 "src/lexer-keywords.txt"
+ {"f64x2.add", TokenType::Binary, Opcode::F64X2Add},
+#line 197 "src/lexer-keywords.txt"
{"i16x8.ge_u", TokenType::Compare, Opcode::I16X8GeU},
-#line 565 "src/lexer-keywords.txt"
- {"v128.const", TokenType::Const, Opcode::V128Const},
-#line 191 "src/lexer-keywords.txt"
+#line 215 "src/lexer-keywords.txt"
+ {"i16x8.ne", TokenType::Compare, Opcode::I16X8Ne},
+#line 201 "src/lexer-keywords.txt"
{"i16x8.le_u", TokenType::Compare, Opcode::I16X8LeU},
{""},
-#line 186 "src/lexer-keywords.txt"
+#line 196 "src/lexer-keywords.txt"
{"i16x8.ge_s", TokenType::Compare, Opcode::I16X8GeS},
{""},
-#line 190 "src/lexer-keywords.txt"
+#line 200 "src/lexer-keywords.txt"
{"i16x8.le_s", TokenType::Compare, Opcode::I16X8LeS},
-#line 583 "src/lexer-keywords.txt"
- {"v128.store8_lane", TokenType::SimdStoreLane, Opcode::V128Store8Lane},
-#line 189 "src/lexer-keywords.txt"
+#line 457 "src/lexer-keywords.txt"
+ {"i64x2.add", TokenType::Binary, Opcode::I64X2Add},
+#line 199 "src/lexer-keywords.txt"
{"i16x8.gt_u", TokenType::Compare, Opcode::I16X8GtU},
{""},
-#line 195 "src/lexer-keywords.txt"
+#line 205 "src/lexer-keywords.txt"
{"i16x8.lt_u", TokenType::Compare, Opcode::I16X8LtU},
- {""},
-#line 188 "src/lexer-keywords.txt"
+#line 385 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw32.xor_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw32XorU},
+#line 198 "src/lexer-keywords.txt"
{"i16x8.gt_s", TokenType::Compare, Opcode::I16X8GtS},
- {""},
-#line 194 "src/lexer-keywords.txt"
+#line 169 "src/lexer-keywords.txt"
+ {"f64x2.replace_lane", TokenType::SimdLaneOp, Opcode::F64X2ReplaceLane},
+#line 204 "src/lexer-keywords.txt"
{"i16x8.lt_s", TokenType::Compare, Opcode::I16X8LtS},
- {""}, {""}, {""},
-#line 203 "src/lexer-keywords.txt"
- {"i16x8.neg", TokenType::Unary, Opcode::I16X8Neg},
-#line 97 "src/lexer-keywords.txt"
- {"f32x4.min", TokenType::Binary, Opcode::F32X4Min},
- {""}, {""}, {""},
-#line 205 "src/lexer-keywords.txt"
- {"i16x8.ne", TokenType::Compare, Opcode::I16X8Ne},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 371 "src/lexer-keywords.txt"
- {"i64.atomic.rmw8.or_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw8OrU},
-#line 240 "src/lexer-keywords.txt"
- {"i32.atomic.rmw8.or_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw8OrU},
- {""}, {""}, {""},
-#line 321 "src/lexer-keywords.txt"
- {"i32x4.min_u", TokenType::Binary, Opcode::I32X4MinU},
+#line 384 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw32.xchg_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw32XchgU},
{""},
-#line 320 "src/lexer-keywords.txt"
- {"i32x4.min_s", TokenType::Binary, Opcode::I32X4MinS},
+#line 387 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw8.and_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw8AndU},
+#line 250 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw8.and_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw8AndU},
+#line 580 "src/lexer-keywords.txt"
+ {"try", TokenType::Try, Opcode::Try},
+ {""},
+#line 477 "src/lexer-keywords.txt"
+ {"i64x2.replace_lane", TokenType::SimdLaneOp, Opcode::I64X2ReplaceLane},
+ {""},
+#line 530 "src/lexer-keywords.txt"
+ {"invoke", TokenType::Invoke},
{""}, {""}, {""},
-#line 212 "src/lexer-keywords.txt"
- {"i16x8.sub_sat_u", TokenType::Binary, Opcode::I16X8SubSatU},
-#line 384 "src/lexer-keywords.txt"
+#line 167 "src/lexer-keywords.txt"
+ {"f64x2.relaxed_min", TokenType::Binary, Opcode::F64X2RelaxedMin},
+ {""},
+#line 402 "src/lexer-keywords.txt"
{"i64.atomic.store8", TokenType::AtomicStore, Opcode::I64AtomicStore8},
-#line 252 "src/lexer-keywords.txt"
+#line 264 "src/lexer-keywords.txt"
{"i32.atomic.store8", TokenType::AtomicStore, Opcode::I32AtomicStore8},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 210 "src/lexer-keywords.txt"
+ {"i16x8.mul", TokenType::Binary, Opcode::I16X8Mul},
{""},
-#line 211 "src/lexer-keywords.txt"
- {"i16x8.sub_sat_s", TokenType::Binary, Opcode::I16X8SubSatS},
+#line 425 "src/lexer-keywords.txt"
+ {"i64.load32_u", TokenType::Load, Opcode::I64Load32U},
+ {""},
+#line 423 "src/lexer-keywords.txt"
+ {"i64.load16_u", TokenType::Load, Opcode::I64Load16U},
+#line 282 "src/lexer-keywords.txt"
+ {"i32.load16_u", TokenType::Load, Opcode::I32Load16U},
+#line 424 "src/lexer-keywords.txt"
+ {"i64.load32_s", TokenType::Load, Opcode::I64Load32S},
+ {""},
+#line 422 "src/lexer-keywords.txt"
+ {"i64.load16_s", TokenType::Load, Opcode::I64Load16S},
+#line 281 "src/lexer-keywords.txt"
+ {"i32.load16_s", TokenType::Load, Opcode::I32Load16S},
+ {""}, {""}, {""}, {""},
#line 386 "src/lexer-keywords.txt"
- {"i64.clz", TokenType::Unary, Opcode::I64Clz},
-#line 254 "src/lexer-keywords.txt"
- {"i32.clz", TokenType::Unary, Opcode::I32Clz},
+ {"i64.atomic.rmw8.add_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw8AddU},
+#line 249 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw8.add_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw8AddU},
+ {""}, {""}, {""}, {""}, {""},
+#line 589 "src/lexer-keywords.txt"
+ {"v128.or", TokenType::Binary, Opcode::V128Or},
+ {""}, {""},
+#line 158 "src/lexer-keywords.txt"
+ {"f64x2.min", TokenType::Binary, Opcode::F64X2Min},
+ {""}, {""},
#line 527 "src/lexer-keywords.txt"
- {"nan:arithmetic", TokenType::NanArithmetic},
-#line 179 "src/lexer-keywords.txt"
- {"i16x8.add", TokenType::Binary, Opcode::I16X8Add},
+ {"if", TokenType::If, Opcode::If},
+#line 232 "src/lexer-keywords.txt"
+ {"i16x8", TokenType::I16X8},
+#line 554 "src/lexer-keywords.txt"
+ {"ref", TokenType::Ref},
+#line 594 "src/lexer-keywords.txt"
+ {"v128", Type::V128},
+ {""}, {""}, {""},
+#line 578 "src/lexer-keywords.txt"
+ {"then", TokenType::Then},
+ {""}, {""}, {""},
+#line 370 "src/lexer-keywords.txt"
+ {"i64.atomic.load8_u", TokenType::AtomicLoad, Opcode::I64AtomicLoad8U},
+#line 240 "src/lexer-keywords.txt"
+ {"i32.atomic.load8_u", TokenType::AtomicLoad, Opcode::I32AtomicLoad8U},
+#line 157 "src/lexer-keywords.txt"
+ {"f64x2.max", TokenType::Binary, Opcode::F64X2Max},
+ {""},
+#line 476 "src/lexer-keywords.txt"
+ {"i64x2.relaxed_laneselect", TokenType::Ternary, Opcode::I64X2RelaxedLaneSelect},
+ {""},
+#line 48 "src/lexer-keywords.txt"
+ {"else", TokenType::Else, Opcode::Else},
+#line 588 "src/lexer-keywords.txt"
+ {"v128.not", TokenType::Unary, Opcode::V128Not},
+#line 593 "src/lexer-keywords.txt"
+ {"v128.store", TokenType::Store, Opcode::V128Store},
+ {""},
+#line 544 "src/lexer-keywords.txt"
+ {"memory.size", TokenType::MemorySize, Opcode::MemorySize},
{""}, {""},
-#line 570 "src/lexer-keywords.txt"
- {"v128.load32_zero", TokenType::Load, Opcode::V128Load32Zero},
+#line 328 "src/lexer-keywords.txt"
+ {"i32x4.relaxed_trunc_f32x4_u", TokenType::Unary, Opcode::I32X4RelaxedTruncF32X4U},
{""}, {""},
-#line 374 "src/lexer-keywords.txt"
+#line 412 "src/lexer-keywords.txt"
+ {"i64.extend32_s", TokenType::Unary, Opcode::I64Extend32S},
+#line 327 "src/lexer-keywords.txt"
+ {"i32x4.relaxed_trunc_f32x4_s", TokenType::Unary, Opcode::I32X4RelaxedTruncF32X4S},
+#line 411 "src/lexer-keywords.txt"
+ {"i64.extend16_s", TokenType::Unary, Opcode::I64Extend16S},
+#line 273 "src/lexer-keywords.txt"
+ {"i32.extend16_s", TokenType::Unary, Opcode::I32Extend16S},
+ {""}, {""}, {""},
+#line 188 "src/lexer-keywords.txt"
+ {"i16x8.add", TokenType::Binary, Opcode::I16X8Add},
+#line 45 "src/lexer-keywords.txt"
+ {"either", TokenType::Either},
+#line 51 "src/lexer-keywords.txt"
+ {"extern", Type::ExternRef, TokenType::Extern},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 49 "src/lexer-keywords.txt"
+ {"end", TokenType::End, Opcode::End},
+ {""},
+#line 218 "src/lexer-keywords.txt"
+ {"i16x8.replace_lane", TokenType::SimdLaneOp, Opcode::I16X8ReplaceLane},
+#line 584 "src/lexer-keywords.txt"
+ {"v128.and", TokenType::Binary, Opcode::V128And},
+#line 415 "src/lexer-keywords.txt"
+ {"i64.extend_i32_u", TokenType::Convert, Opcode::I64ExtendI32U},
+ {""},
+#line 414 "src/lexer-keywords.txt"
+ {"i64.extend_i32_s", TokenType::Convert, Opcode::I64ExtendI32S},
+ {""},
+#line 392 "src/lexer-keywords.txt"
{"i64.atomic.rmw8.xor_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw8XorU},
-#line 243 "src/lexer-keywords.txt"
+#line 255 "src/lexer-keywords.txt"
{"i32.atomic.rmw8.xor_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw8XorU},
+ {""}, {""},
+#line 531 "src/lexer-keywords.txt"
+ {"item", TokenType::Item},
{""},
-#line 388 "src/lexer-keywords.txt"
- {"i64.ctz", TokenType::Unary, Opcode::I64Ctz},
-#line 256 "src/lexer-keywords.txt"
- {"i32.ctz", TokenType::Unary, Opcode::I32Ctz},
-#line 180 "src/lexer-keywords.txt"
- {"i16x8.all_true", TokenType::Unary, Opcode::I16X8AllTrue},
- {""}, {""}, {""}, {""},
-#line 327 "src/lexer-keywords.txt"
- {"i32x4.shl", TokenType::Binary, Opcode::I32X4Shl},
+#line 151 "src/lexer-keywords.txt"
+ {"f64x2.extract_lane", TokenType::SimdLaneOp, Opcode::F64X2ExtractLane},
+#line 587 "src/lexer-keywords.txt"
+ {"v128.load", TokenType::Load, Opcode::V128Load},
{""}, {""}, {""}, {""},
-#line 178 "src/lexer-keywords.txt"
- {"i16x8.add_sat_u", TokenType::Binary, Opcode::I16X8AddSatU},
+#line 34 "src/lexer-keywords.txt"
+ {"call_indirect", TokenType::CallIndirect, Opcode::CallIndirect},
{""},
-#line 506 "src/lexer-keywords.txt"
- {"if", TokenType::If, Opcode::If},
+#line 458 "src/lexer-keywords.txt"
+ {"i64x2.extract_lane", TokenType::SimdLaneOp, Opcode::I64X2ExtractLane},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 168 "src/lexer-keywords.txt"
+ {"f64x2.relaxed_nmadd", TokenType::Ternary, Opcode::F64X2RelaxedNmadd},
+#line 89 "src/lexer-keywords.txt"
+ {"f32x4.div", TokenType::Binary, Opcode::F32X4Div},
+ {""}, {""},
+#line 586 "src/lexer-keywords.txt"
+ {"v128.const", TokenType::Const, Opcode::V128Const},
+ {""}, {""},
+#line 165 "src/lexer-keywords.txt"
+ {"f64x2.relaxed_madd", TokenType::Ternary, Opcode::F64X2RelaxedMadd},
{""},
-#line 177 "src/lexer-keywords.txt"
- {"i16x8.add_sat_s", TokenType::Binary, Opcode::I16X8AddSatS},
-#line 39 "src/lexer-keywords.txt"
- {"data.drop", TokenType::DataDrop, Opcode::DataDrop},
-#line 533 "src/lexer-keywords.txt"
- {"ref", TokenType::Ref},
+#line 607 "src/lexer-keywords.txt"
+ {"v128.store64_lane", TokenType::SimdStoreLane, Opcode::V128Store64Lane},
+#line 583 "src/lexer-keywords.txt"
+ {"v128.andnot", TokenType::Binary, Opcode::V128Andnot},
{""}, {""}, {""}, {""}, {""}, {""},
-#line 579 "src/lexer-keywords.txt"
- {"v128.load8_lane", TokenType::SimdLoadLane, Opcode::V128Load8Lane},
+#line 178 "src/lexer-keywords.txt"
+ {"field", TokenType::Field},
+ {""}, {""},
+#line 451 "src/lexer-keywords.txt"
+ {"i64.trunc_f64_u", TokenType::Convert, Opcode::I64TruncF64U},
+#line 307 "src/lexer-keywords.txt"
+ {"i32.trunc_f64_u", TokenType::Convert, Opcode::I32TruncF64U},
+ {""}, {""},
+#line 450 "src/lexer-keywords.txt"
+ {"i64.trunc_f64_s", TokenType::Convert, Opcode::I64TruncF64S},
+#line 306 "src/lexer-keywords.txt"
+ {"i32.trunc_f64_s", TokenType::Convert, Opcode::I32TruncF64S},
+#line 470 "src/lexer-keywords.txt"
+ {"i64x2.all_true", TokenType::Unary, Opcode::I64X2AllTrue},
{""}, {""}, {""}, {""}, {""},
-#line 578 "src/lexer-keywords.txt"
- {"v128.load8_splat", TokenType::Load, Opcode::V128Load8Splat},
-#line 106 "src/lexer-keywords.txt"
- {"f32x4.sqrt", TokenType::Unary, Opcode::F32X4Sqrt},
+#line 216 "src/lexer-keywords.txt"
+ {"i16x8.relaxed_laneselect", TokenType::Ternary, Opcode::I16X8RelaxedLaneSelect},
+ {""}, {""}, {""}, {""}, {""},
+#line 177 "src/lexer-keywords.txt"
+ {"f64x2", TokenType::F64X2},
+ {""},
+#line 92 "src/lexer-keywords.txt"
+ {"f32x4.floor", TokenType::Unary, Opcode::F32X4Floor},
+#line 595 "src/lexer-keywords.txt"
+ {"v128.xor", TokenType::Binary, Opcode::V128Xor},
{""}, {""}, {""}, {""},
-#line 47 "src/lexer-keywords.txt"
- {"else", TokenType::Else, Opcode::Else},
+#line 487 "src/lexer-keywords.txt"
+ {"i64x2", TokenType::I64X2},
+ {""}, {""},
+#line 442 "src/lexer-keywords.txt"
+ {"i64.shr_u", TokenType::Binary, Opcode::I64ShrU},
+#line 299 "src/lexer-keywords.txt"
+ {"i32.shr_u", TokenType::Binary, Opcode::I32ShrU},
+#line 441 "src/lexer-keywords.txt"
+ {"i64.shr_s", TokenType::Binary, Opcode::I64ShrS},
+#line 298 "src/lexer-keywords.txt"
+ {"i32.shr_s", TokenType::Binary, Opcode::I32ShrS},
+ {""}, {""}, {""}, {""}, {""},
+#line 347 "src/lexer-keywords.txt"
+ {"i32x4.shr_u", TokenType::Binary, Opcode::I32X4ShrU},
+ {""},
+#line 346 "src/lexer-keywords.txt"
+ {"i32x4.shr_s", TokenType::Binary, Opcode::I32X4ShrS},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""},
#line 557 "src/lexer-keywords.txt"
- {"then", TokenType::Then},
+ {"ref.func", TokenType::RefFunc, Opcode::RefFunc},
+ {""}, {""}, {""},
+#line 389 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw8.or_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw8OrU},
+#line 252 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw8.or_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw8OrU},
+ {""}, {""}, {""}, {""},
+#line 127 "src/lexer-keywords.txt"
+ {"f64.floor", TokenType::Unary, Opcode::F64Floor},
+#line 66 "src/lexer-keywords.txt"
+ {"f32.floor", TokenType::Unary, Opcode::F32Floor},
{""},
-#line 329 "src/lexer-keywords.txt"
- {"i32x4.shr_u", TokenType::Binary, Opcode::I32X4ShrU},
+#line 600 "src/lexer-keywords.txt"
+ {"v128.load8_lane", TokenType::SimdLoadLane, Opcode::V128Load8Lane},
{""},
-#line 328 "src/lexer-keywords.txt"
- {"i32x4.shr_s", TokenType::Binary, Opcode::I32X4ShrS},
-#line 532 "src/lexer-keywords.txt"
- {"param", TokenType::Param},
- {""}, {""},
-#line 168 "src/lexer-keywords.txt"
- {"f64x2", TokenType::F64X2},
-#line 220 "src/lexer-keywords.txt"
- {"i16x8", TokenType::I16X8},
-#line 468 "src/lexer-keywords.txt"
- {"i64x2", TokenType::I64X2},
-#line 48 "src/lexer-keywords.txt"
- {"end", TokenType::End, Opcode::End},
+#line 460 "src/lexer-keywords.txt"
+ {"v128.load32x2_u", TokenType::Load, Opcode::V128Load32X2U},
{""}, {""}, {""},
-#line 206 "src/lexer-keywords.txt"
- {"i16x8.replace_lane", TokenType::SimdLaneOp, Opcode::I16X8ReplaceLane},
+#line 459 "src/lexer-keywords.txt"
+ {"v128.load32x2_s", TokenType::Load, Opcode::V128Load32X2S},
+ {""}, {""}, {""},
+#line 563 "src/lexer-keywords.txt"
+ {"return_call_indirect", TokenType::ReturnCallIndirect, Opcode::ReturnCallIndirect},
+#line 543 "src/lexer-keywords.txt"
+ {"memory.init", TokenType::MemoryInit, Opcode::MemoryInit},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 166 "src/lexer-keywords.txt"
+ {"f64x2.relaxed_max", TokenType::Binary, Opcode::F64X2RelaxedMax},
{""}, {""},
-#line 200 "src/lexer-keywords.txt"
- {"i16x8.mul", TokenType::Binary, Opcode::I16X8Mul},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 38 "src/lexer-keywords.txt"
+ {"catch_all", TokenType::CatchAll, Opcode::CatchAll},
+#line 112 "src/lexer-keywords.txt"
+ {"f32x4.sub", TokenType::Binary, Opcode::F32X4Sub},
{""},
-#line 169 "src/lexer-keywords.txt"
- {"field", TokenType::Field},
-#line 351 "src/lexer-keywords.txt"
- {"i64.atomic.load32_u", TokenType::AtomicLoad, Opcode::I64AtomicLoad32U},
-#line 584 "src/lexer-keywords.txt"
- {"v128.store16_lane", TokenType::SimdStoreLane, Opcode::V128Store16Lane},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 50 "src/lexer-keywords.txt"
- {"extern", Type::ExternRef, TokenType::Extern},
-#line 586 "src/lexer-keywords.txt"
- {"v128.store64_lane", TokenType::SimdStoreLane, Opcode::V128Store64Lane},
+#line 568 "src/lexer-keywords.txt"
+ {"start", TokenType::Start},
+ {""}, {""}, {""}, {""}, {""},
+#line 349 "src/lexer-keywords.txt"
+ {"i32x4.sub", TokenType::Binary, Opcode::I32X4Sub},
+#line 224 "src/lexer-keywords.txt"
+ {"i16x8.sub_sat_u", TokenType::Binary, Opcode::I16X8SubSatU},
+#line 599 "src/lexer-keywords.txt"
+ {"v128.load8_splat", TokenType::Load, Opcode::V128Load8Splat},
+ {""},
+#line 189 "src/lexer-keywords.txt"
+ {"i16x8.all_true", TokenType::Unary, Opcode::I16X8AllTrue},
+#line 223 "src/lexer-keywords.txt"
+ {"i16x8.sub_sat_s", TokenType::Binary, Opcode::I16X8SubSatS},
+#line 116 "src/lexer-keywords.txt"
+ {"f64.abs", TokenType::Unary, Opcode::F64Abs},
+#line 54 "src/lexer-keywords.txt"
+ {"f32.abs", TokenType::Unary, Opcode::F32Abs},
+ {""}, {""}, {""}, {""}, {""},
+#line 581 "src/lexer-keywords.txt"
+ {"type", TokenType::Type},
{""}, {""}, {""}, {""}, {""}, {""},
-#line 197 "src/lexer-keywords.txt"
+#line 84 "src/lexer-keywords.txt"
+ {"f32x4.abs", TokenType::Unary, Opcode::F32X4Abs},
+ {""}, {""},
+#line 398 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw.xchg", TokenType::AtomicRmw, Opcode::I64AtomicRmwXchg},
+#line 261 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw.xchg", TokenType::AtomicRmw, Opcode::I32AtomicRmwXchg},
+#line 63 "src/lexer-keywords.txt"
+ {"f32.demote_f64", TokenType::Convert, Opcode::F32DemoteF64},
+ {""}, {""},
+#line 314 "src/lexer-keywords.txt"
+ {"i32x4.abs", TokenType::Unary, Opcode::I32X4Abs},
+ {""},
+#line 207 "src/lexer-keywords.txt"
{"i16x8.max_u", TokenType::Binary, Opcode::I16X8MaxU},
{""},
-#line 196 "src/lexer-keywords.txt"
+#line 206 "src/lexer-keywords.txt"
{"i16x8.max_s", TokenType::Binary, Opcode::I16X8MaxS},
-#line 105 "src/lexer-keywords.txt"
- {"f32x4.splat", TokenType::Unary, Opcode::F32X4Splat},
+#line 571 "src/lexer-keywords.txt"
+ {"table.fill", TokenType::TableFill, Opcode::TableFill},
+#line 478 "src/lexer-keywords.txt"
+ {"i64x2.shl", TokenType::Binary, Opcode::I64X2Shl},
{""},
-#line 330 "src/lexer-keywords.txt"
- {"i32x4.splat", TokenType::Unary, Opcode::I32X4Splat},
- {""}, {""},
-#line 582 "src/lexer-keywords.txt"
- {"v128.load64_lane", TokenType::SimdLoadLane, Opcode::V128Load64Lane},
+#line 513 "src/lexer-keywords.txt"
+ {"i8x16.neg", TokenType::Unary, Opcode::I8X16Neg},
{""},
-#line 153 "src/lexer-keywords.txt"
- {"f64x2.min", TokenType::Binary, Opcode::F64X2Min},
- {""}, {""}, {""},
-#line 577 "src/lexer-keywords.txt"
- {"v128.load64_splat", TokenType::Load, Opcode::V128Load64Splat},
- {""}, {""},
-#line 558 "src/lexer-keywords.txt"
- {"throw", TokenType::Throw, Opcode::Throw},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 481 "src/lexer-keywords.txt"
+#line 500 "src/lexer-keywords.txt"
{"i8x16.ge_u", TokenType::Compare, Opcode::I8X16GeU},
- {""},
-#line 485 "src/lexer-keywords.txt"
+#line 515 "src/lexer-keywords.txt"
+ {"i8x16.ne", TokenType::Compare, Opcode::I8X16Ne},
+#line 504 "src/lexer-keywords.txt"
{"i8x16.le_u", TokenType::Compare, Opcode::I8X16LeU},
{""},
-#line 480 "src/lexer-keywords.txt"
+#line 499 "src/lexer-keywords.txt"
{"i8x16.ge_s", TokenType::Compare, Opcode::I8X16GeS},
{""},
-#line 484 "src/lexer-keywords.txt"
+#line 503 "src/lexer-keywords.txt"
{"i8x16.le_s", TokenType::Compare, Opcode::I8X16LeS},
{""},
-#line 483 "src/lexer-keywords.txt"
+#line 502 "src/lexer-keywords.txt"
{"i8x16.gt_u", TokenType::Compare, Opcode::I8X16GtU},
{""},
-#line 487 "src/lexer-keywords.txt"
+#line 506 "src/lexer-keywords.txt"
{"i8x16.lt_u", TokenType::Compare, Opcode::I8X16LtU},
-#line 536 "src/lexer-keywords.txt"
- {"ref.func", TokenType::RefFunc, Opcode::RefFunc},
-#line 482 "src/lexer-keywords.txt"
+#line 529 "src/lexer-keywords.txt"
+ {"input", TokenType::Input},
+#line 501 "src/lexer-keywords.txt"
{"i8x16.gt_s", TokenType::Compare, Opcode::I8X16GtS},
{""},
-#line 486 "src/lexer-keywords.txt"
+#line 505 "src/lexer-keywords.txt"
{"i8x16.lt_s", TokenType::Compare, Opcode::I8X16LtS},
{""}, {""},
-#line 185 "src/lexer-keywords.txt"
- {"i16x8.extract_lane_u", TokenType::SimdLaneOp, Opcode::I16X8ExtractLaneU},
-#line 494 "src/lexer-keywords.txt"
- {"i8x16.neg", TokenType::Unary, Opcode::I8X16Neg},
-#line 184 "src/lexer-keywords.txt"
- {"i16x8.extract_lane_s", TokenType::SimdLaneOp, Opcode::I16X8ExtractLaneS},
- {""}, {""},
-#line 510 "src/lexer-keywords.txt"
- {"item", TokenType::Item},
-#line 496 "src/lexer-keywords.txt"
- {"i8x16.ne", TokenType::Compare, Opcode::I8X16Ne},
- {""}, {""},
-#line 193 "src/lexer-keywords.txt"
+#line 203 "src/lexer-keywords.txt"
{"v128.load8x8_u", TokenType::Load, Opcode::V128Load8X8U},
{""},
-#line 192 "src/lexer-keywords.txt"
+#line 202 "src/lexer-keywords.txt"
{"v128.load8x8_s", TokenType::Load, Opcode::V128Load8X8S},
- {""},
-#line 459 "src/lexer-keywords.txt"
- {"i64x2.shl", TokenType::Binary, Opcode::I64X2Shl},
- {""}, {""}, {""}, {""},
-#line 380 "src/lexer-keywords.txt"
- {"i64.atomic.rmw.xchg", TokenType::AtomicRmw, Opcode::I64AtomicRmwXchg},
-#line 249 "src/lexer-keywords.txt"
- {"i32.atomic.rmw.xchg", TokenType::AtomicRmw, Opcode::I32AtomicRmwXchg},
- {""}, {""}, {""}, {""},
-#line 503 "src/lexer-keywords.txt"
- {"i8x16.sub_sat_u", TokenType::Binary, Opcode::I8X16SubSatU},
- {""},
-#line 571 "src/lexer-keywords.txt"
- {"v128.load64_zero", TokenType::Load, Opcode::V128Load64Zero},
- {""},
-#line 502 "src/lexer-keywords.txt"
- {"i8x16.sub_sat_s", TokenType::Binary, Opcode::I8X16SubSatS},
{""}, {""}, {""},
-#line 473 "src/lexer-keywords.txt"
- {"i8x16.add", TokenType::Binary, Opcode::I8X16Add},
- {""}, {""}, {""}, {""}, {""},
-#line 162 "src/lexer-keywords.txt"
- {"f64x2.sqrt", TokenType::Unary, Opcode::F64X2Sqrt},
+#line 555 "src/lexer-keywords.txt"
+ {"quote", TokenType::Quote},
{""}, {""},
-#line 559 "src/lexer-keywords.txt"
- {"try", TokenType::Try, Opcode::Try},
+#line 528 "src/lexer-keywords.txt"
+ {"import", TokenType::Import},
{""},
-#line 474 "src/lexer-keywords.txt"
- {"i8x16.all_true", TokenType::Unary, Opcode::I8X16AllTrue},
- {""}, {""}, {""},
-#line 461 "src/lexer-keywords.txt"
- {"i64x2.shr_u", TokenType::Binary, Opcode::I64X2ShrU},
+#line 567 "src/lexer-keywords.txt"
+ {"shared", TokenType::Shared},
+#line 604 "src/lexer-keywords.txt"
+ {"v128.store8_lane", TokenType::SimdStoreLane, Opcode::V128Store8Lane},
{""},
-#line 460 "src/lexer-keywords.txt"
- {"i64x2.shr_s", TokenType::Binary, Opcode::I64X2ShrS},
+#line 187 "src/lexer-keywords.txt"
+ {"i16x8.add_sat_u", TokenType::Binary, Opcode::I16X8AddSatU},
{""}, {""}, {""},
-#line 472 "src/lexer-keywords.txt"
- {"i8x16.add_sat_u", TokenType::Binary, Opcode::I8X16AddSatU},
-#line 111 "src/lexer-keywords.txt"
- {"f64.abs", TokenType::Unary, Opcode::F64Abs},
-#line 53 "src/lexer-keywords.txt"
- {"f32.abs", TokenType::Unary, Opcode::F32Abs},
- {""},
-#line 471 "src/lexer-keywords.txt"
- {"i8x16.add_sat_s", TokenType::Binary, Opcode::I8X16AddSatS},
+#line 186 "src/lexer-keywords.txt"
+ {"i16x8.add_sat_s", TokenType::Binary, Opcode::I16X8AddSatS},
+#line 141 "src/lexer-keywords.txt"
+ {"f64.sqrt", TokenType::Unary, Opcode::F64Sqrt},
+#line 79 "src/lexer-keywords.txt"
+ {"f32.sqrt", TokenType::Unary, Opcode::F32Sqrt},
+#line 32 "src/lexer-keywords.txt"
+ {"br_table", TokenType::BrTable, Opcode::BrTable},
{""},
#line 552 "src/lexer-keywords.txt"
- {"table.grow", TokenType::TableGrow, Opcode::TableGrow},
+ {"output", TokenType::Output},
+ {""},
+#line 602 "src/lexer-keywords.txt"
+ {"v128.load32_lane", TokenType::SimdLoadLane, Opcode::V128Load32Lane},
+ {""},
+#line 551 "src/lexer-keywords.txt"
+ {"offset", TokenType::Offset},
+#line 111 "src/lexer-keywords.txt"
+ {"f32x4.sqrt", TokenType::Unary, Opcode::F32X4Sqrt},
+ {""}, {""},
+#line 545 "src/lexer-keywords.txt"
+ {"memory", TokenType::Memory},
+#line 381 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw32.cmpxchg_u", TokenType::AtomicRmwCmpxchg, Opcode::I64AtomicRmw32CmpxchgU},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 123 "src/lexer-keywords.txt"
+ {"f64.convert_i64_u", TokenType::Convert, Opcode::F64ConvertI64U},
+#line 61 "src/lexer-keywords.txt"
+ {"f32.convert_i64_u", TokenType::Convert, Opcode::F32ConvertI64U},
+ {""}, {""},
#line 122 "src/lexer-keywords.txt"
- {"f64.floor", TokenType::Unary, Opcode::F64Floor},
-#line 65 "src/lexer-keywords.txt"
- {"f32.floor", TokenType::Unary, Opcode::F32Floor},
-#line 121 "src/lexer-keywords.txt"
- {"f64.eq", TokenType::Compare, Opcode::F64Eq},
-#line 64 "src/lexer-keywords.txt"
- {"f32.eq", TokenType::Compare, Opcode::F32Eq},
-#line 391 "src/lexer-keywords.txt"
- {"i64.eq", TokenType::Compare, Opcode::I64Eq},
-#line 259 "src/lexer-keywords.txt"
- {"i32.eq", TokenType::Compare, Opcode::I32Eq},
- {""}, {""}, {""}, {""}, {""},
-#line 541 "src/lexer-keywords.txt"
- {"rethrow", TokenType::Rethrow, Opcode::Rethrow},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 547 "src/lexer-keywords.txt"
- {"start", TokenType::Start},
- {""}, {""}, {""}, {""},
+ {"f64.convert_i64_s", TokenType::Convert, Opcode::F64ConvertI64S},
+#line 60 "src/lexer-keywords.txt"
+ {"f32.convert_i64_s", TokenType::Convert, Opcode::F32ConvertI64S},
+#line 408 "src/lexer-keywords.txt"
+ {"i64.div_u", TokenType::Binary, Opcode::I64DivU},
+#line 270 "src/lexer-keywords.txt"
+ {"i32.div_u", TokenType::Binary, Opcode::I32DivU},
+#line 407 "src/lexer-keywords.txt"
+ {"i64.div_s", TokenType::Binary, Opcode::I64DivS},
+#line 269 "src/lexer-keywords.txt"
+ {"i32.div_s", TokenType::Binary, Opcode::I32DivS},
+#line 597 "src/lexer-keywords.txt"
+ {"v128.load32_splat", TokenType::Load, Opcode::V128Load32Splat},
+ {""}, {""}, {""},
+#line 376 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw16.sub_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw16SubU},
+#line 246 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw16.sub_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw16SubU},
+ {""}, {""}, {""},
#line 37 "src/lexer-keywords.txt"
{"catch", TokenType::Catch, Opcode::Catch},
{""}, {""}, {""},
-#line 456 "src/lexer-keywords.txt"
- {"i64x2.extend_low_i32x4_u", TokenType::Unary, Opcode::I64X2ExtendLowI32X4U},
+#line 553 "src/lexer-keywords.txt"
+ {"param", TokenType::Param},
+ {""}, {""}, {""}, {""}, {""},
+#line 209 "src/lexer-keywords.txt"
+ {"i16x8.min_u", TokenType::Binary, Opcode::I16X8MinU},
{""},
-#line 454 "src/lexer-keywords.txt"
- {"i64x2.extend_low_i32x4_s", TokenType::Unary, Opcode::I64X2ExtendLowI32X4S},
+#line 208 "src/lexer-keywords.txt"
+ {"i16x8.min_s", TokenType::Binary, Opcode::I16X8MinS},
{""},
-#line 585 "src/lexer-keywords.txt"
- {"v128.store32_lane", TokenType::SimdStoreLane, Opcode::V128Store32Lane},
-#line 497 "src/lexer-keywords.txt"
- {"i8x16.replace_lane", TokenType::SimdLaneOp, Opcode::I8X16ReplaceLane},
- {""}, {""},
-#line 425 "src/lexer-keywords.txt"
- {"i64.store16", TokenType::Store, Opcode::I64Store16},
-#line 288 "src/lexer-keywords.txt"
- {"i32.store16", TokenType::Store, Opcode::I32Store16},
- {""}, {""}, {""},
-#line 161 "src/lexer-keywords.txt"
- {"f64x2.splat", TokenType::Unary, Opcode::F64X2Splat},
+#line 219 "src/lexer-keywords.txt"
+ {"i16x8.shl", TokenType::Binary, Opcode::I16X8Shl},
{""},
-#line 462 "src/lexer-keywords.txt"
- {"i64x2.splat", TokenType::Unary, Opcode::I64X2Splat},
-#line 32 "src/lexer-keywords.txt"
- {"br_table", TokenType::BrTable, Opcode::BrTable},
-#line 103 "src/lexer-keywords.txt"
- {"f32x4.pmin", TokenType::Binary, Opcode::F32X4PMin},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 110 "src/lexer-keywords.txt"
+ {"f32x4.splat", TokenType::Unary, Opcode::F32X4Splat},
+ {""}, {""}, {""}, {""},
+#line 591 "src/lexer-keywords.txt"
+ {"v128.load32_zero", TokenType::Load, Opcode::V128Load32Zero},
{""}, {""},
-#line 546 "src/lexer-keywords.txt"
- {"shared", TokenType::Shared},
-#line 505 "src/lexer-keywords.txt"
- {"i8x16", TokenType::I8X16},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 358 "src/lexer-keywords.txt"
- {"i64.atomic.rmw16.sub_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw16SubU},
-#line 234 "src/lexer-keywords.txt"
- {"i32.atomic.rmw16.sub_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw16SubU},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 489 "src/lexer-keywords.txt"
- {"i8x16.max_u", TokenType::Binary, Opcode::I8X16MaxU},
- {""},
-#line 488 "src/lexer-keywords.txt"
- {"i8x16.max_s", TokenType::Binary, Opcode::I8X16MaxS},
- {""}, {""}, {""},
-#line 175 "src/lexer-keywords.txt"
- {"global", TokenType::Global},
+#line 348 "src/lexer-keywords.txt"
+ {"i32x4.splat", TokenType::Unary, Opcode::I32X4Splat},
+#line 492 "src/lexer-keywords.txt"
+ {"i8x16.add", TokenType::Binary, Opcode::I8X16Add},
{""},
-#line 523 "src/lexer-keywords.txt"
- {"memory.size", TokenType::MemorySize, Opcode::MemorySize},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 355 "src/lexer-keywords.txt"
+#line 373 "src/lexer-keywords.txt"
{"i64.atomic.rmw16.and_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw16AndU},
-#line 231 "src/lexer-keywords.txt"
+#line 243 "src/lexer-keywords.txt"
{"i32.atomic.rmw16.and_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw16AndU},
-#line 363 "src/lexer-keywords.txt"
- {"i64.atomic.rmw32.cmpxchg_u", TokenType::AtomicRmwCmpxchg, Opcode::I64AtomicRmw32CmpxchgU},
{""}, {""}, {""},
-#line 354 "src/lexer-keywords.txt"
+#line 579 "src/lexer-keywords.txt"
+ {"throw", TokenType::Throw, Opcode::Throw},
+#line 369 "src/lexer-keywords.txt"
+ {"i64.atomic.load32_u", TokenType::AtomicLoad, Opcode::I64AtomicLoad32U},
+#line 104 "src/lexer-keywords.txt"
+ {"f32x4.pmin", TokenType::Binary, Opcode::F32X4PMin},
+#line 368 "src/lexer-keywords.txt"
+ {"i64.atomic.load16_u", TokenType::AtomicLoad, Opcode::I64AtomicLoad16U},
+#line 239 "src/lexer-keywords.txt"
+ {"i32.atomic.load16_u", TokenType::AtomicLoad, Opcode::I32AtomicLoad16U},
+ {""}, {""},
+#line 518 "src/lexer-keywords.txt"
+ {"i8x16.replace_lane", TokenType::SimdLaneOp, Opcode::I8X16ReplaceLane},
+#line 30 "src/lexer-keywords.txt"
+ {"block", TokenType::Block, Opcode::Block},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 375 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw16.or_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw16OrU},
+#line 245 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw16.or_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw16OrU},
+ {""}, {""}, {""}, {""}, {""},
+#line 372 "src/lexer-keywords.txt"
{"i64.atomic.rmw16.add_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw16AddU},
-#line 230 "src/lexer-keywords.txt"
+#line 242 "src/lexer-keywords.txt"
{"i32.atomic.rmw16.add_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw16AddU},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 199 "src/lexer-keywords.txt"
- {"i16x8.min_u", TokenType::Binary, Opcode::I16X8MinU},
- {""},
-#line 198 "src/lexer-keywords.txt"
- {"i16x8.min_s", TokenType::Binary, Opcode::I16X8MinS},
- {""},
-#line 550 "src/lexer-keywords.txt"
- {"table.fill", TokenType::TableFill, Opcode::TableFill},
{""}, {""}, {""},
-#line 102 "src/lexer-keywords.txt"
- {"f32x4.pmax", TokenType::Binary, Opcode::F32X4PMax},
-#line 390 "src/lexer-keywords.txt"
- {"i64.div_u", TokenType::Binary, Opcode::I64DivU},
-#line 258 "src/lexer-keywords.txt"
- {"i32.div_u", TokenType::Binary, Opcode::I32DivU},
-#line 389 "src/lexer-keywords.txt"
- {"i64.div_s", TokenType::Binary, Opcode::I64DivS},
-#line 257 "src/lexer-keywords.txt"
- {"i32.div_s", TokenType::Binary, Opcode::I32DivS},
-#line 479 "src/lexer-keywords.txt"
- {"i8x16.extract_lane_u", TokenType::SimdLaneOp, Opcode::I8X16ExtractLaneU},
- {""},
-#line 478 "src/lexer-keywords.txt"
- {"i8x16.extract_lane_s", TokenType::SimdLaneOp, Opcode::I8X16ExtractLaneS},
-#line 466 "src/lexer-keywords.txt"
- {"i64x2.extmul_low_i32x4_u", TokenType::Binary, Opcode::I64X2ExtmulLowI32X4U},
-#line 91 "src/lexer-keywords.txt"
- {"f32x4.floor", TokenType::Unary, Opcode::F32X4Floor},
-#line 464 "src/lexer-keywords.txt"
- {"i64x2.extmul_low_i32x4_s", TokenType::Binary, Opcode::I64X2ExtmulLowI32X4S},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 173 "src/lexer-keywords.txt"
- {"global.get", TokenType::GlobalGet, Opcode::GlobalGet},
+#line 39 "src/lexer-keywords.txt"
+ {"data.drop", TokenType::DataDrop, Opcode::DataDrop},
+ {""}, {""},
+#line 29 "src/lexer-keywords.txt"
+ {"binary", TokenType::Bin},
+ {""}, {""},
+#line 190 "src/lexer-keywords.txt"
+ {"i16x8.avgr_u", TokenType::Binary, Opcode::I16X8AvgrU},
+#line 195 "src/lexer-keywords.txt"
+ {"i16x8.extract_lane_u", TokenType::SimdLaneOp, Opcode::I16X8ExtractLaneU},
{""},
-#line 174 "src/lexer-keywords.txt"
- {"global.set", TokenType::GlobalSet, Opcode::GlobalSet},
+#line 194 "src/lexer-keywords.txt"
+ {"i16x8.extract_lane_s", TokenType::SimdLaneOp, Opcode::I16X8ExtractLaneS},
+ {""}, {""}, {""}, {""},
+#line 590 "src/lexer-keywords.txt"
+ {"v128.any_true", TokenType::Unary, Opcode::V128AnyTrue},
{""},
-#line 529 "src/lexer-keywords.txt"
- {"nop", TokenType::Nop, Opcode::Nop},
-#line 207 "src/lexer-keywords.txt"
- {"i16x8.shl", TokenType::Binary, Opcode::I16X8Shl},
+#line 149 "src/lexer-keywords.txt"
+ {"f64x2.div", TokenType::Binary, Opcode::F64X2Div},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 44 "src/lexer-keywords.txt"
- {"drop", TokenType::Drop, Opcode::Drop},
-#line 373 "src/lexer-keywords.txt"
- {"i64.atomic.rmw8.xchg_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw8XchgU},
-#line 242 "src/lexer-keywords.txt"
- {"i32.atomic.rmw8.xchg_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw8XchgU},
+#line 606 "src/lexer-keywords.txt"
+ {"v128.store32_lane", TokenType::SimdStoreLane, Opcode::V128Store32Lane},
{""},
-#line 25 "src/lexer-keywords.txt"
- {"assert_return", TokenType::AssertReturn},
+#line 605 "src/lexer-keywords.txt"
+ {"v128.store16_lane", TokenType::SimdStoreLane, Opcode::V128Store16Lane},
+#line 401 "src/lexer-keywords.txt"
+ {"i64.atomic.store32", TokenType::AtomicStore, Opcode::I64AtomicStore32},
{""},
-#line 569 "src/lexer-keywords.txt"
- {"v128.any_true", TokenType::Unary, Opcode::V128AnyTrue},
-#line 392 "src/lexer-keywords.txt"
+#line 542 "src/lexer-keywords.txt"
+ {"memory.grow", TokenType::MemoryGrow, Opcode::MemoryGrow},
+#line 517 "src/lexer-keywords.txt"
+ {"i8x16.relaxed_laneselect", TokenType::Ternary, Opcode::I8X16RelaxedLaneSelect},
+ {""}, {""},
+#line 317 "src/lexer-keywords.txt"
+ {"i32x4.bitmask", TokenType::Unary, Opcode::I32X4Bitmask},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 562 "src/lexer-keywords.txt"
+ {"rethrow", TokenType::Rethrow, Opcode::Rethrow},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 582 "src/lexer-keywords.txt"
+ {"unreachable", TokenType::Unreachable, Opcode::Unreachable},
+ {""},
+#line 152 "src/lexer-keywords.txt"
+ {"f64x2.floor", TokenType::Unary, Opcode::F64X2Floor},
+ {""}, {""}, {""},
+#line 573 "src/lexer-keywords.txt"
+ {"table.grow", TokenType::TableGrow, Opcode::TableGrow},
+#line 410 "src/lexer-keywords.txt"
{"i64.eqz", TokenType::Convert, Opcode::I64Eqz},
-#line 260 "src/lexer-keywords.txt"
+#line 272 "src/lexer-keywords.txt"
{"i32.eqz", TokenType::Convert, Opcode::I32Eqz},
-#line 357 "src/lexer-keywords.txt"
- {"i64.atomic.rmw16.or_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw16OrU},
-#line 233 "src/lexer-keywords.txt"
- {"i32.atomic.rmw16.or_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw16OrU},
- {""}, {""}, {""},
-#line 383 "src/lexer-keywords.txt"
- {"i64.atomic.store32", TokenType::AtomicStore, Opcode::I64AtomicStore32},
{""}, {""},
-#line 359 "src/lexer-keywords.txt"
- {"i64.atomic.rmw16.xchg_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw16XchgU},
-#line 235 "src/lexer-keywords.txt"
- {"i32.atomic.rmw16.xchg_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw16XchgU},
-#line 437 "src/lexer-keywords.txt"
- {"i64.trunc_sat_f64_u", TokenType::Convert, Opcode::I64TruncSatF64U},
-#line 299 "src/lexer-keywords.txt"
- {"i32.trunc_sat_f64_u", TokenType::Convert, Opcode::I32TruncSatF64U},
- {""}, {""},
-#line 436 "src/lexer-keywords.txt"
- {"i64.trunc_sat_f64_s", TokenType::Convert, Opcode::I64TruncSatF64S},
-#line 298 "src/lexer-keywords.txt"
- {"i32.trunc_sat_f64_s", TokenType::Convert, Opcode::I32TruncSatF64S},
-#line 209 "src/lexer-keywords.txt"
- {"i16x8.shr_u", TokenType::Binary, Opcode::I16X8ShrU},
+#line 391 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw8.xchg_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw8XchgU},
+#line 254 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw8.xchg_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw8XchgU},
+ {""}, {""}, {""}, {""}, {""},
+#line 443 "src/lexer-keywords.txt"
+ {"i64.store16", TokenType::Store, Opcode::I64Store16},
+#line 300 "src/lexer-keywords.txt"
+ {"i32.store16", TokenType::Store, Opcode::I32Store16},
+#line 480 "src/lexer-keywords.txt"
+ {"i64x2.shr_u", TokenType::Binary, Opcode::I64X2ShrU},
{""},
-#line 208 "src/lexer-keywords.txt"
- {"i16x8.shr_s", TokenType::Binary, Opcode::I16X8ShrS},
+#line 479 "src/lexer-keywords.txt"
+ {"i64x2.shr_s", TokenType::Binary, Opcode::I64X2ShrS},
{""}, {""},
-#line 377 "src/lexer-keywords.txt"
- {"i64.atomic.rmw.cmpxchg", TokenType::AtomicRmwCmpxchg, Opcode::I64AtomicRmwCmpxchg},
-#line 246 "src/lexer-keywords.txt"
- {"i32.atomic.rmw.cmpxchg", TokenType::AtomicRmwCmpxchg, Opcode::I32AtomicRmwCmpxchg},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 107 "src/lexer-keywords.txt"
- {"f32x4.sub", TokenType::Binary, Opcode::F32X4Sub},
- {""},
-#line 331 "src/lexer-keywords.txt"
- {"i32x4.sub", TokenType::Binary, Opcode::I32X4Sub},
-#line 83 "src/lexer-keywords.txt"
- {"f32x4.abs", TokenType::Unary, Opcode::F32X4Abs},
- {""},
-#line 302 "src/lexer-keywords.txt"
- {"i32x4.abs", TokenType::Unary, Opcode::I32X4Abs},
+#line 570 "src/lexer-keywords.txt"
+ {"table.copy", TokenType::TableCopy, Opcode::TableCopy},
{""},
-#line 159 "src/lexer-keywords.txt"
- {"f64x2.pmin", TokenType::Binary, Opcode::F64X2PMin},
+#line 541 "src/lexer-keywords.txt"
+ {"memory.fill", TokenType::MemoryFill, Opcode::MemoryFill},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""},
+#line 125 "src/lexer-keywords.txt"
+ {"f64.div", TokenType::Binary, Opcode::F64Div},
+#line 64 "src/lexer-keywords.txt"
+ {"f32.div", TokenType::Binary, Opcode::F32Div},
{""},
-#line 360 "src/lexer-keywords.txt"
+#line 25 "src/lexer-keywords.txt"
+ {"assert_return", TokenType::AssertReturn},
+#line 378 "src/lexer-keywords.txt"
{"i64.atomic.rmw16.xor_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw16XorU},
-#line 236 "src/lexer-keywords.txt"
+#line 248 "src/lexer-keywords.txt"
{"i32.atomic.rmw16.xor_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw16XorU},
- {""}, {""}, {""}, {""}, {""},
-#line 89 "src/lexer-keywords.txt"
- {"f32x4.eq", TokenType::Compare, Opcode::F32X4Eq},
- {""},
-#line 306 "src/lexer-keywords.txt"
- {"i32x4.eq", TokenType::Compare, Opcode::I32X4Eq},
+ {""}, {""},
+#line 377 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw16.xchg_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw16XchgU},
+#line 247 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw16.xchg_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw16XchgU},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 118 "src/lexer-keywords.txt"
- {"f64.convert_i64_u", TokenType::Convert, Opcode::F64ConvertI64U},
-#line 60 "src/lexer-keywords.txt"
- {"f32.convert_i64_u", TokenType::Convert, Opcode::F32ConvertI64U},
+ {""}, {""}, {""},
+#line 524 "src/lexer-keywords.txt"
+ {"i8x16.sub_sat_u", TokenType::Binary, Opcode::I8X16SubSatU},
{""}, {""},
-#line 117 "src/lexer-keywords.txt"
- {"f64.convert_i64_s", TokenType::Convert, Opcode::F64ConvertI64S},
-#line 59 "src/lexer-keywords.txt"
- {"f32.convert_i64_s", TokenType::Convert, Opcode::F32ConvertI64S},
+#line 493 "src/lexer-keywords.txt"
+ {"i8x16.all_true", TokenType::Unary, Opcode::I8X16AllTrue},
+#line 523 "src/lexer-keywords.txt"
+ {"i8x16.sub_sat_s", TokenType::Binary, Opcode::I8X16SubSatS},
{""}, {""},
-#line 210 "src/lexer-keywords.txt"
- {"i16x8.splat", TokenType::Unary, Opcode::I16X8Splat},
+#line 172 "src/lexer-keywords.txt"
+ {"f64x2.sub", TokenType::Binary, Opcode::F64X2Sub},
{""}, {""}, {""}, {""},
-#line 521 "src/lexer-keywords.txt"
- {"memory.grow", TokenType::MemoryGrow, Opcode::MemoryGrow},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 322 "src/lexer-keywords.txt"
+#line 339 "src/lexer-keywords.txt"
{"i32x4.dot_i16x8_s", TokenType::Binary, Opcode::I32X4DotI16X8S},
- {""},
-#line 522 "src/lexer-keywords.txt"
- {"memory.init", TokenType::MemoryInit, Opcode::MemoryInit},
+ {""}, {""},
+#line 482 "src/lexer-keywords.txt"
+ {"i64x2.sub", TokenType::Binary, Opcode::I64X2Sub},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 526 "src/lexer-keywords.txt"
+ {"i8x16", TokenType::I8X16},
{""}, {""}, {""},
-#line 158 "src/lexer-keywords.txt"
- {"f64x2.pmax", TokenType::Binary, Opcode::F64X2PMax},
- {""}, {""}, {""}, {""},
-#line 515 "src/lexer-keywords.txt"
- {"loop", TokenType::Loop, Opcode::Loop},
-#line 62 "src/lexer-keywords.txt"
- {"f32.demote_f64", TokenType::Convert, Opcode::F32DemoteF64},
- {""}, {""},
-#line 147 "src/lexer-keywords.txt"
- {"f64x2.floor", TokenType::Unary, Opcode::F64X2Floor},
-#line 52 "src/lexer-keywords.txt"
- {"export", TokenType::Export},
-#line 315 "src/lexer-keywords.txt"
- {"v128.load16x4_u", TokenType::Load, Opcode::V128Load16X4U},
- {""}, {""},
-#line 88 "src/lexer-keywords.txt"
- {"f32x4.div", TokenType::Binary, Opcode::F32X4Div},
-#line 314 "src/lexer-keywords.txt"
- {"v128.load16x4_s", TokenType::Load, Opcode::V128Load16X4S},
-#line 580 "src/lexer-keywords.txt"
- {"v128.load16_lane", TokenType::SimdLoadLane, Opcode::V128Load16Lane},
- {""}, {""}, {""}, {""},
-#line 109 "src/lexer-keywords.txt"
- {"f32x4.demote_f64x2_zero", TokenType::Unary, Opcode::F32X4DemoteF64X2Zero},
-#line 575 "src/lexer-keywords.txt"
- {"v128.load16_splat", TokenType::Load, Opcode::V128Load16Splat},
- {""}, {""}, {""}, {""},
-#line 491 "src/lexer-keywords.txt"
- {"i8x16.min_u", TokenType::Binary, Opcode::I8X16MinU},
+#line 508 "src/lexer-keywords.txt"
+ {"i8x16.max_u", TokenType::Binary, Opcode::I8X16MaxU},
{""},
-#line 490 "src/lexer-keywords.txt"
- {"i8x16.min_s", TokenType::Binary, Opcode::I8X16MinS},
- {""}, {""}, {""}, {""}, {""},
-#line 370 "src/lexer-keywords.txt"
- {"i64.atomic.rmw8.cmpxchg_u", TokenType::AtomicRmwCmpxchg, Opcode::I64AtomicRmw8CmpxchgU},
-#line 239 "src/lexer-keywords.txt"
- {"i32.atomic.rmw8.cmpxchg_u", TokenType::AtomicRmwCmpxchg, Opcode::I32AtomicRmw8CmpxchgU},
- {""}, {""},
-#line 524 "src/lexer-keywords.txt"
- {"memory", TokenType::Memory},
-#line 561 "src/lexer-keywords.txt"
- {"unreachable", TokenType::Unreachable, Opcode::Unreachable},
+#line 507 "src/lexer-keywords.txt"
+ {"i8x16.max_s", TokenType::Binary, Opcode::I8X16MaxS},
+ {""}, {""}, {""},
+#line 146 "src/lexer-keywords.txt"
+ {"f64x2.abs", TokenType::Unary, Opcode::F64X2Abs},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 468 "src/lexer-keywords.txt"
+ {"i64x2.abs", TokenType::Unary, Opcode::I64X2Abs},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 221 "src/lexer-keywords.txt"
+ {"i16x8.shr_u", TokenType::Binary, Opcode::I16X8ShrU},
{""},
-#line 416 "src/lexer-keywords.txt"
- {"i64.popcnt", TokenType::Unary, Opcode::I64Popcnt},
-#line 279 "src/lexer-keywords.txt"
- {"i32.popcnt", TokenType::Unary, Opcode::I32Popcnt},
+#line 220 "src/lexer-keywords.txt"
+ {"i16x8.shr_s", TokenType::Binary, Opcode::I16X8ShrS},
{""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 435 "src/lexer-keywords.txt"
- {"i64.trunc_sat_f32_u", TokenType::Convert, Opcode::I64TruncSatF32U},
-#line 297 "src/lexer-keywords.txt"
- {"i32.trunc_sat_f32_u", TokenType::Convert, Opcode::I32TruncSatF32U},
+#line 390 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw8.sub_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw8SubU},
+#line 253 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw8.sub_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw8SubU},
+ {""}, {""}, {""}, {""}, {""},
+#line 491 "src/lexer-keywords.txt"
+ {"i8x16.add_sat_u", TokenType::Binary, Opcode::I8X16AddSatU},
+#line 103 "src/lexer-keywords.txt"
+ {"f32x4.pmax", TokenType::Binary, Opcode::F32X4PMax},
{""}, {""},
-#line 434 "src/lexer-keywords.txt"
- {"i64.trunc_sat_f32_s", TokenType::Convert, Opcode::I64TruncSatF32S},
-#line 296 "src/lexer-keywords.txt"
- {"i32.trunc_sat_f32_s", TokenType::Convert, Opcode::I32TruncSatF32S},
-#line 498 "src/lexer-keywords.txt"
- {"i8x16.shl", TokenType::Binary, Opcode::I8X16Shl},
- {""},
-#line 24 "src/lexer-keywords.txt"
- {"assert_malformed", TokenType::AssertMalformed},
+#line 490 "src/lexer-keywords.txt"
+ {"i8x16.add_sat_s", TokenType::Binary, Opcode::I8X16AddSatS},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""},
-#line 163 "src/lexer-keywords.txt"
- {"f64x2.sub", TokenType::Binary, Opcode::F64X2Sub},
+#line 455 "src/lexer-keywords.txt"
+ {"i64.trunc_sat_f64_u", TokenType::Convert, Opcode::I64TruncSatF64U},
+#line 311 "src/lexer-keywords.txt"
+ {"i32.trunc_sat_f64_u", TokenType::Convert, Opcode::I32TruncSatF64U},
+#line 47 "src/lexer-keywords.txt"
+ {"elem", TokenType::Elem},
{""},
-#line 463 "src/lexer-keywords.txt"
- {"i64x2.sub", TokenType::Binary, Opcode::I64X2Sub},
-#line 141 "src/lexer-keywords.txt"
- {"f64x2.abs", TokenType::Unary, Opcode::F64X2Abs},
+#line 454 "src/lexer-keywords.txt"
+ {"i64.trunc_sat_f64_s", TokenType::Convert, Opcode::I64TruncSatF64S},
+#line 310 "src/lexer-keywords.txt"
+ {"i32.trunc_sat_f64_s", TokenType::Convert, Opcode::I32TruncSatF64S},
+#line 171 "src/lexer-keywords.txt"
+ {"f64x2.sqrt", TokenType::Unary, Opcode::F64X2Sqrt},
+ {""}, {""}, {""},
+#line 52 "src/lexer-keywords.txt"
+ {"externref", Type::ExternRef},
+#line 603 "src/lexer-keywords.txt"
+ {"v128.load64_lane", TokenType::SimdLoadLane, Opcode::V128Load64Lane},
{""},
-#line 450 "src/lexer-keywords.txt"
- {"i64x2.abs", TokenType::Unary, Opcode::I64X2Abs},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 333 "src/lexer-keywords.txt"
+#line 351 "src/lexer-keywords.txt"
{"i32x4.extadd_pairwise_i16x8_u", TokenType::Unary, Opcode::I32X4ExtaddPairwiseI16X8U},
{""},
-#line 332 "src/lexer-keywords.txt"
+#line 350 "src/lexer-keywords.txt"
{"i32x4.extadd_pairwise_i16x8_s", TokenType::Unary, Opcode::I32X4ExtaddPairwiseI16X8S},
- {""},
-#line 145 "src/lexer-keywords.txt"
- {"f64x2.eq", TokenType::Compare, Opcode::F64X2Eq},
- {""},
-#line 444 "src/lexer-keywords.txt"
- {"i64x2.eq", TokenType::Binary, Opcode::I64X2Eq},
- {""}, {""},
-#line 500 "src/lexer-keywords.txt"
- {"i8x16.shr_u", TokenType::Binary, Opcode::I8X16ShrU},
- {""},
-#line 499 "src/lexer-keywords.txt"
- {"i8x16.shr_s", TokenType::Binary, Opcode::I8X16ShrS},
-#line 224 "src/lexer-keywords.txt"
- {"i16x8.extend_low_i8x16_u", TokenType::Unary, Opcode::I16X8ExtendLowI8X16U},
- {""},
-#line 223 "src/lexer-keywords.txt"
- {"i16x8.extend_low_i8x16_s", TokenType::Unary, Opcode::I16X8ExtendLowI8X16S},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 29 "src/lexer-keywords.txt"
- {"binary", TokenType::Bin},
- {""}, {""},
-#line 116 "src/lexer-keywords.txt"
+#line 225 "src/lexer-keywords.txt"
+ {"i16x8.sub", TokenType::Binary, Opcode::I16X8Sub},
+#line 31 "src/lexer-keywords.txt"
+ {"br_if", TokenType::BrIf, Opcode::BrIf},
+#line 121 "src/lexer-keywords.txt"
{"f64.convert_i32_u", TokenType::Convert, Opcode::F64ConvertI32U},
-#line 58 "src/lexer-keywords.txt"
+#line 59 "src/lexer-keywords.txt"
{"f32.convert_i32_u", TokenType::Convert, Opcode::F32ConvertI32U},
- {""}, {""},
-#line 115 "src/lexer-keywords.txt"
+ {""},
+#line 24 "src/lexer-keywords.txt"
+ {"assert_malformed", TokenType::AssertMalformed},
+#line 120 "src/lexer-keywords.txt"
{"f64.convert_i32_s", TokenType::Convert, Opcode::F64ConvertI32S},
-#line 57 "src/lexer-keywords.txt"
+#line 58 "src/lexer-keywords.txt"
{"f32.convert_i32_s", TokenType::Convert, Opcode::F32ConvertI32S},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 181 "src/lexer-keywords.txt"
- {"i16x8.avgr_u", TokenType::Binary, Opcode::I16X8AvgrU},
- {""}, {""},
-#line 382 "src/lexer-keywords.txt"
- {"i64.atomic.store16", TokenType::AtomicStore, Opcode::I64AtomicStore16},
-#line 251 "src/lexer-keywords.txt"
- {"i32.atomic.store16", TokenType::AtomicStore, Opcode::I32AtomicStore16},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""},
-#line 501 "src/lexer-keywords.txt"
- {"i8x16.splat", TokenType::Unary, Opcode::I8X16Splat},
- {""}, {""}, {""},
-#line 549 "src/lexer-keywords.txt"
- {"table.copy", TokenType::TableCopy, Opcode::TableCopy},
- {""}, {""}, {""},
-#line 144 "src/lexer-keywords.txt"
- {"f64x2.div", TokenType::Binary, Opcode::F64X2Div},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 344 "src/lexer-keywords.txt"
- {"i32x4.extend_low_i16x8_u", TokenType::Unary, Opcode::I32X4ExtendLowI16X8U},
-#line 202 "src/lexer-keywords.txt"
- {"i16x8.narrow_i32x4_u", TokenType::Binary, Opcode::I16X8NarrowI32X4U},
-#line 343 "src/lexer-keywords.txt"
- {"i32x4.extend_low_i16x8_s", TokenType::Unary, Opcode::I32X4ExtendLowI16X8S},
-#line 201 "src/lexer-keywords.txt"
- {"i16x8.narrow_i32x4_s", TokenType::Binary, Opcode::I16X8NarrowI32X4S},
- {""}, {""},
-#line 520 "src/lexer-keywords.txt"
- {"memory.fill", TokenType::MemoryFill, Opcode::MemoryFill},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 510 "src/lexer-keywords.txt"
+ {"i8x16.min_u", TokenType::Binary, Opcode::I8X16MinU},
{""},
-#line 372 "src/lexer-keywords.txt"
- {"i64.atomic.rmw8.sub_u", TokenType::AtomicRmw, Opcode::I64AtomicRmw8SubU},
-#line 241 "src/lexer-keywords.txt"
- {"i32.atomic.rmw8.sub_u", TokenType::AtomicRmw, Opcode::I32AtomicRmw8SubU},
+#line 509 "src/lexer-keywords.txt"
+ {"i8x16.min_s", TokenType::Binary, Opcode::I8X16MinS},
+ {""},
+#line 519 "src/lexer-keywords.txt"
+ {"i8x16.shl", TokenType::Binary, Opcode::I8X16Shl},
+#line 598 "src/lexer-keywords.txt"
+ {"v128.load64_splat", TokenType::Load, Opcode::V128Load64Splat},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 218 "src/lexer-keywords.txt"
- {"i16x8.extmul_low_i8x16_u", TokenType::Binary, Opcode::I16X8ExtmulLowI8X16U},
+#line 185 "src/lexer-keywords.txt"
+ {"i16x8.abs", TokenType::Unary, Opcode::I16X8Abs},
+#line 179 "src/lexer-keywords.txt"
+ {"funcref", Type::FuncRef},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 170 "src/lexer-keywords.txt"
+ {"f64x2.splat", TokenType::Unary, Opcode::F64X2Splat},
+ {""}, {""}, {""}, {""}, {""},
+#line 516 "src/lexer-keywords.txt"
+ {"i8x16.relaxed_swizzle", TokenType::Binary, Opcode::I8X16RelaxedSwizzle},
{""},
-#line 216 "src/lexer-keywords.txt"
- {"i16x8.extmul_low_i8x16_s", TokenType::Binary, Opcode::I16X8ExtmulLowI8X16S},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 481 "src/lexer-keywords.txt"
+ {"i64x2.splat", TokenType::Unary, Opcode::I64X2Splat},
+ {""}, {""}, {""}, {""},
+#line 592 "src/lexer-keywords.txt"
+ {"v128.load64_zero", TokenType::Load, Opcode::V128Load64Zero},
+#line 88 "src/lexer-keywords.txt"
+ {"f32x4.convert_i32x4_u", TokenType::Unary, Opcode::F32X4ConvertI32X4U},
+ {""},
+#line 87 "src/lexer-keywords.txt"
+ {"f32x4.convert_i32x4_s", TokenType::Unary, Opcode::F32X4ConvertI32X4S},
+ {""},
+#line 164 "src/lexer-keywords.txt"
+ {"f64x2.pmin", TokenType::Binary, Opcode::F64X2PMin},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 31 "src/lexer-keywords.txt"
- {"br_if", TokenType::BrIf, Opcode::BrIf},
- {""}, {""}, {""},
-#line 340 "src/lexer-keywords.txt"
+ {""}, {""}, {""}, {""},
+#line 474 "src/lexer-keywords.txt"
+ {"i64x2.extend_low_i32x4_u", TokenType::Unary, Opcode::I64X2ExtendLowI32X4U},
+ {""},
+#line 472 "src/lexer-keywords.txt"
+ {"i64x2.extend_low_i32x4_s", TokenType::Unary, Opcode::I64X2ExtendLowI32X4S},
+ {""}, {""},
+#line 485 "src/lexer-keywords.txt"
+ {"i64x2.extmul_low_i32x4_u", TokenType::Binary, Opcode::I64X2ExtmulLowI32X4U},
+#line 184 "src/lexer-keywords.txt"
+ {"global", TokenType::Global},
+#line 483 "src/lexer-keywords.txt"
+ {"i64x2.extmul_low_i32x4_s", TokenType::Binary, Opcode::I64X2ExtmulLowI32X4S},
+ {""}, {""},
+#line 494 "src/lexer-keywords.txt"
+ {"i8x16.avgr_u", TokenType::Binary, Opcode::I8X16AvgrU},
+#line 498 "src/lexer-keywords.txt"
+ {"i8x16.extract_lane_u", TokenType::SimdLaneOp, Opcode::I8X16ExtractLaneU},
+ {""},
+#line 497 "src/lexer-keywords.txt"
+ {"i8x16.extract_lane_s", TokenType::SimdLaneOp, Opcode::I8X16ExtractLaneS},
+ {""}, {""}, {""}, {""},
+#line 358 "src/lexer-keywords.txt"
{"i32x4.trunc_sat_f32x4_u", TokenType::Unary, Opcode::I32X4TruncSatF32X4U},
{""}, {""}, {""},
-#line 339 "src/lexer-keywords.txt"
+#line 357 "src/lexer-keywords.txt"
{"i32x4.trunc_sat_f32x4_s", TokenType::Unary, Opcode::I32X4TruncSatF32X4S},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 332 "src/lexer-keywords.txt"
+ {"v128.load16x4_u", TokenType::Load, Opcode::V128Load16X4U},
{""}, {""}, {""},
-#line 213 "src/lexer-keywords.txt"
- {"i16x8.sub", TokenType::Binary, Opcode::I16X8Sub},
- {""}, {""},
-#line 176 "src/lexer-keywords.txt"
- {"i16x8.abs", TokenType::Unary, Opcode::I16X8Abs},
-#line 336 "src/lexer-keywords.txt"
- {"i32x4.extmul_low_i16x8_u", TokenType::Binary, Opcode::I32X4ExtmulLowI16X8U},
- {""},
-#line 334 "src/lexer-keywords.txt"
- {"i32x4.extmul_low_i16x8_s", TokenType::Binary, Opcode::I32X4ExtmulLowI16X8S},
-#line 51 "src/lexer-keywords.txt"
- {"externref", Type::ExternRef},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 183 "src/lexer-keywords.txt"
- {"i16x8.eq", TokenType::Compare, Opcode::I16X8Eq},
-#line 495 "src/lexer-keywords.txt"
- {"i8x16.popcnt", TokenType::Unary, Opcode::I8X16Popcnt},
+#line 331 "src/lexer-keywords.txt"
+ {"v128.load16x4_s", TokenType::Load, Opcode::V128Load16X4S},
+ {""}, {""}, {""}, {""},
+#line 395 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw.cmpxchg", TokenType::AtomicRmwCmpxchg, Opcode::I64AtomicRmwCmpxchg},
+#line 258 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw.cmpxchg", TokenType::AtomicRmwCmpxchg, Opcode::I32AtomicRmwCmpxchg},
{""}, {""},
-#line 342 "src/lexer-keywords.txt"
+#line 360 "src/lexer-keywords.txt"
{"i32x4.extend_high_i16x8_u", TokenType::Unary, Opcode::I32X4ExtendHighI16X8U},
{""},
-#line 341 "src/lexer-keywords.txt"
+#line 359 "src/lexer-keywords.txt"
{"i32x4.extend_high_i16x8_s", TokenType::Unary, Opcode::I32X4ExtendHighI16X8S},
+ {""}, {""},
+#line 355 "src/lexer-keywords.txt"
+ {"i32x4.extmul_high_i16x8_u", TokenType::Binary, Opcode::I32X4ExtmulHighI16X8U},
{""},
-#line 305 "src/lexer-keywords.txt"
- {"i32x4.bitmask", TokenType::Unary, Opcode::I32X4Bitmask},
+#line 353 "src/lexer-keywords.txt"
+ {"i32x4.extmul_high_i16x8_s", TokenType::Binary, Opcode::I32X4ExtmulHighI16X8S},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""},
-#line 170 "src/lexer-keywords.txt"
- {"funcref", Type::FuncRef},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 588 "src/lexer-keywords.txt"
- {"i8x16.swizzle", TokenType::Binary, Opcode::I8X16Swizzle},
- {""}, {""}, {""},
-#line 26 "src/lexer-keywords.txt"
- {"assert_trap", TokenType::AssertTrap},
- {""}, {""},
-#line 46 "src/lexer-keywords.txt"
- {"elem", TokenType::Elem},
- {""}, {""}, {""},
-#line 475 "src/lexer-keywords.txt"
- {"i8x16.avgr_u", TokenType::Binary, Opcode::I8X16AvgrU},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 119 "src/lexer-keywords.txt"
- {"f64.copysign", TokenType::Binary, Opcode::F64Copysign},
-#line 61 "src/lexer-keywords.txt"
- {"f32.copysign", TokenType::Binary, Opcode::F32Copysign},
+#line 182 "src/lexer-keywords.txt"
+ {"global.get", TokenType::GlobalGet, Opcode::GlobalGet},
+#line 471 "src/lexer-keywords.txt"
+ {"i64x2.bitmask", TokenType::Unary, Opcode::I64X2Bitmask},
+#line 183 "src/lexer-keywords.txt"
+ {"global.set", TokenType::GlobalSet, Opcode::GlobalSet},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""},
+#line 222 "src/lexer-keywords.txt"
+ {"i16x8.splat", TokenType::Unary, Opcode::I16X8Splat},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""},
+#line 388 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw8.cmpxchg_u", TokenType::AtomicRmwCmpxchg, Opcode::I64AtomicRmw8CmpxchgU},
+#line 251 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw8.cmpxchg_u", TokenType::AtomicRmwCmpxchg, Opcode::I32AtomicRmw8CmpxchgU},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""},
+#line 114 "src/lexer-keywords.txt"
+ {"f32x4.demote_f64x2_zero", TokenType::Unary, Opcode::F32X4DemoteF64X2Zero},
{""}, {""}, {""},
-#line 346 "src/lexer-keywords.txt"
+#line 364 "src/lexer-keywords.txt"
{"i32x4.trunc_sat_f64x2_u_zero", TokenType::Unary, Opcode::I32X4TruncSatF64X2UZero},
{""},
-#line 345 "src/lexer-keywords.txt"
+#line 363 "src/lexer-keywords.txt"
{"i32x4.trunc_sat_f64x2_s_zero", TokenType::Unary, Opcode::I32X4TruncSatF64X2SZero},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""},
-#line 134 "src/lexer-keywords.txt"
- {"f64.promote_f32", TokenType::Convert, Opcode::F64PromoteF32},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""},
+#line 609 "src/lexer-keywords.txt"
+ {"i8x16.swizzle", TokenType::Binary, Opcode::I8X16Swizzle},
{""}, {""}, {""}, {""}, {""},
-#line 564 "src/lexer-keywords.txt"
+#line 585 "src/lexer-keywords.txt"
{"v128.bitselect", TokenType::Ternary, Opcode::V128BitSelect},
{""}, {""},
-#line 337 "src/lexer-keywords.txt"
- {"i32x4.extmul_high_i16x8_u", TokenType::Binary, Opcode::I32X4ExtmulHighI16X8U},
+#line 53 "src/lexer-keywords.txt"
+ {"export", TokenType::Export},
+#line 212 "src/lexer-keywords.txt"
+ {"i16x8.narrow_i32x4_u", TokenType::Binary, Opcode::I16X8NarrowI32X4U},
{""},
-#line 335 "src/lexer-keywords.txt"
- {"i32x4.extmul_high_i16x8_s", TokenType::Binary, Opcode::I32X4ExtmulHighI16X8S},
+#line 211 "src/lexer-keywords.txt"
+ {"i16x8.narrow_i32x4_s", TokenType::Binary, Opcode::I16X8NarrowI32X4S},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""},
-#line 356 "src/lexer-keywords.txt"
+#line 601 "src/lexer-keywords.txt"
+ {"v128.load16_lane", TokenType::SimdLoadLane, Opcode::V128Load16Lane},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 374 "src/lexer-keywords.txt"
{"i64.atomic.rmw16.cmpxchg_u", TokenType::AtomicRmwCmpxchg, Opcode::I64AtomicRmw16CmpxchgU},
-#line 232 "src/lexer-keywords.txt"
+#line 244 "src/lexer-keywords.txt"
{"i32.atomic.rmw16.cmpxchg_u", TokenType::AtomicRmwCmpxchg, Opcode::I32AtomicRmw16CmpxchgU},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 191 "src/lexer-keywords.txt"
+ {"i16x8.bitmask", TokenType::Unary, Opcode::I16X8Bitmask},
+#line 217 "src/lexer-keywords.txt"
+ {"i16x8.relaxed_q15mulr_s", TokenType::Binary, Opcode::I16X8RelaxedQ15mulrS},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 596 "src/lexer-keywords.txt"
+ {"v128.load16_splat", TokenType::Load, Opcode::V128Load16Splat},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 301 "src/lexer-keywords.txt"
- {"i32.wrap_i64", TokenType::Convert, Opcode::I32WrapI64},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""},
+#line 521 "src/lexer-keywords.txt"
+ {"i8x16.shr_u", TokenType::Binary, Opcode::I8X16ShrU},
+ {""},
+#line 520 "src/lexer-keywords.txt"
+ {"i8x16.shr_s", TokenType::Binary, Opcode::I8X16ShrS},
+ {""}, {""},
+#line 143 "src/lexer-keywords.txt"
+ {"f64.sub", TokenType::Binary, Opcode::F64Sub},
+#line 81 "src/lexer-keywords.txt"
+ {"f32.sub", TokenType::Binary, Opcode::F32Sub},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 447 "src/lexer-keywords.txt"
+ {"i64.sub", TokenType::Binary, Opcode::I64Sub},
+#line 303 "src/lexer-keywords.txt"
+ {"i32.sub", TokenType::Binary, Opcode::I32Sub},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""},
+#line 236 "src/lexer-keywords.txt"
+ {"i16x8.extend_low_i8x16_u", TokenType::Unary, Opcode::I16X8ExtendLowI8X16U},
{""},
+#line 235 "src/lexer-keywords.txt"
+ {"i16x8.extend_low_i8x16_s", TokenType::Unary, Opcode::I16X8ExtendLowI8X16S},
+ {""}, {""},
+#line 230 "src/lexer-keywords.txt"
+ {"i16x8.extmul_low_i8x16_u", TokenType::Binary, Opcode::I16X8ExtmulLowI8X16U},
+ {""},
+#line 228 "src/lexer-keywords.txt"
+ {"i16x8.extmul_low_i8x16_s", TokenType::Binary, Opcode::I16X8ExtmulLowI8X16S},
+#line 163 "src/lexer-keywords.txt"
+ {"f64x2.pmax", TokenType::Binary, Opcode::F64X2PMax},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 362 "src/lexer-keywords.txt"
+ {"i32x4.extend_low_i16x8_u", TokenType::Unary, Opcode::I32X4ExtendLowI16X8U},
+ {""},
+#line 361 "src/lexer-keywords.txt"
+ {"i32x4.extend_low_i16x8_s", TokenType::Unary, Opcode::I32X4ExtendLowI16X8S},
#line 35 "src/lexer-keywords.txt"
{"call_ref", TokenType::CallRef, Opcode::CallRef},
- {""}, {""}, {""},
-#line 215 "src/lexer-keywords.txt"
- {"i16x8.extadd_pairwise_i8x16_u", TokenType::Unary, Opcode::I16X8ExtaddPairwiseI8X16U},
{""},
-#line 214 "src/lexer-keywords.txt"
- {"i16x8.extadd_pairwise_i8x16_s", TokenType::Unary, Opcode::I16X8ExtaddPairwiseI8X16S},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""},
-#line 453 "src/lexer-keywords.txt"
- {"i64x2.bitmask", TokenType::Unary, Opcode::I64X2Bitmask},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 354 "src/lexer-keywords.txt"
+ {"i32x4.extmul_low_i16x8_u", TokenType::Binary, Opcode::I32X4ExtmulLowI16X8U},
{""},
-#line 504 "src/lexer-keywords.txt"
+#line 352 "src/lexer-keywords.txt"
+ {"i32x4.extmul_low_i16x8_s", TokenType::Binary, Opcode::I32X4ExtmulLowI16X8S},
+#line 313 "src/lexer-keywords.txt"
+ {"i32.wrap_i64", TokenType::Convert, Opcode::I32WrapI64},
+ {""}, {""}, {""}, {""}, {""},
+#line 525 "src/lexer-keywords.txt"
{"i8x16.sub", TokenType::Binary, Opcode::I8X16Sub},
-#line 21 "src/lexer-keywords.txt"
- {"assert_exception", TokenType::AssertException},
- {""},
-#line 470 "src/lexer-keywords.txt"
- {"i8x16.abs", TokenType::Unary, Opcode::I8X16Abs},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 120 "src/lexer-keywords.txt"
- {"f64.div", TokenType::Binary, Opcode::F64Div},
-#line 63 "src/lexer-keywords.txt"
- {"f32.div", TokenType::Binary, Opcode::F32Div},
- {""}, {""}, {""},
-#line 477 "src/lexer-keywords.txt"
- {"i8x16.eq", TokenType::Compare, Opcode::I8X16Eq},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 457 "src/lexer-keywords.txt"
+#line 453 "src/lexer-keywords.txt"
+ {"i64.trunc_sat_f32_u", TokenType::Convert, Opcode::I64TruncSatF32U},
+#line 309 "src/lexer-keywords.txt"
+ {"i32.trunc_sat_f32_u", TokenType::Convert, Opcode::I32TruncSatF32U},
+ {""}, {""},
+#line 452 "src/lexer-keywords.txt"
+ {"i64.trunc_sat_f32_s", TokenType::Convert, Opcode::I64TruncSatF32S},
+#line 308 "src/lexer-keywords.txt"
+ {"i32.trunc_sat_f32_s", TokenType::Convert, Opcode::I32TruncSatF32S},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 318 "src/lexer-keywords.txt"
+ {"i32x4.dot_i8x16_i7x16_add_s", TokenType::Ternary, Opcode::I32X4DotI8X16I7X16AddS},
+ {""}, {""}, {""}, {""},
+#line 124 "src/lexer-keywords.txt"
+ {"f64.copysign", TokenType::Binary, Opcode::F64Copysign},
+#line 62 "src/lexer-keywords.txt"
+ {"f32.copysign", TokenType::Binary, Opcode::F32Copysign},
+ {""}, {""},
+#line 475 "src/lexer-keywords.txt"
{"i64x2.extend_high_i32x4_u", TokenType::Unary, Opcode::I64X2ExtendHighI32X4U},
{""},
-#line 455 "src/lexer-keywords.txt"
+#line 473 "src/lexer-keywords.txt"
{"i64x2.extend_high_i32x4_s", TokenType::Unary, Opcode::I64X2ExtendHighI32X4S},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""},
-#line 135 "src/lexer-keywords.txt"
+ {""}, {""},
+#line 486 "src/lexer-keywords.txt"
+ {"i64x2.extmul_high_i32x4_u", TokenType::Binary, Opcode::I64X2ExtmulHighI32X4U},
+#line 489 "src/lexer-keywords.txt"
+ {"i8x16.abs", TokenType::Unary, Opcode::I8X16Abs},
+#line 484 "src/lexer-keywords.txt"
+ {"i64x2.extmul_high_i32x4_s", TokenType::Binary, Opcode::I64X2ExtmulHighI32X4S},
+ {""},
+#line 140 "src/lexer-keywords.txt"
{"f64.reinterpret_i64", TokenType::Convert, Opcode::F64ReinterpretI64},
+ {""},
+#line 20 "src/lexer-keywords.txt"
+ {"array", Type::Array, TokenType::Array},
+ {""}, {""}, {""}, {""},
+#line 400 "src/lexer-keywords.txt"
+ {"i64.atomic.store16", TokenType::AtomicStore, Opcode::I64AtomicStore16},
+#line 263 "src/lexer-keywords.txt"
+ {"i32.atomic.store16", TokenType::AtomicStore, Opcode::I32AtomicStore16},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""},
+#line 126 "src/lexer-keywords.txt"
+ {"f64.eq", TokenType::Compare, Opcode::F64Eq},
+#line 65 "src/lexer-keywords.txt"
+ {"f32.eq", TokenType::Compare, Opcode::F32Eq},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 409 "src/lexer-keywords.txt"
+ {"i64.eq", TokenType::Compare, Opcode::I64Eq},
+#line 271 "src/lexer-keywords.txt"
+ {"i32.eq", TokenType::Compare, Opcode::I32Eq},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""},
+#line 90 "src/lexer-keywords.txt"
+ {"f32x4.eq", TokenType::Compare, Opcode::F32X4Eq},
{""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 319 "src/lexer-keywords.txt"
+ {"i32x4.eq", TokenType::Compare, Opcode::I32X4Eq},
+ {""},
#line 22 "src/lexer-keywords.txt"
{"assert_exhaustion", TokenType::AssertExhaustion},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 44 "src/lexer-keywords.txt"
+ {"drop", TokenType::Drop, Opcode::Drop},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 138 "src/lexer-keywords.txt"
- {"f64.sub", TokenType::Binary, Opcode::F64Sub},
-#line 80 "src/lexer-keywords.txt"
- {"f32.sub", TokenType::Binary, Opcode::F32Sub},
-#line 429 "src/lexer-keywords.txt"
- {"i64.sub", TokenType::Binary, Opcode::I64Sub},
-#line 291 "src/lexer-keywords.txt"
- {"i32.sub", TokenType::Binary, Opcode::I32Sub},
+ {""}, {""}, {""}, {""},
+#line 23 "src/lexer-keywords.txt"
+ {"assert_invalid", TokenType::AssertInvalid},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 550 "src/lexer-keywords.txt"
+ {"nop", TokenType::Nop, Opcode::Nop},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""},
+#line 522 "src/lexer-keywords.txt"
+ {"i8x16.splat", TokenType::Unary, Opcode::I8X16Splat},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 536 "src/lexer-keywords.txt"
+ {"loop", TokenType::Loop, Opcode::Loop},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 538 "src/lexer-keywords.txt"
+ {"memory.atomic.wait32", TokenType::AtomicWait, Opcode::MemoryAtomicWait32},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 539 "src/lexer-keywords.txt"
+ {"memory.atomic.wait64", TokenType::AtomicWait, Opcode::MemoryAtomicWait64},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""},
-#line 467 "src/lexer-keywords.txt"
- {"i64x2.extmul_high_i32x4_u", TokenType::Binary, Opcode::I64X2ExtmulHighI32X4U},
- {""},
-#line 465 "src/lexer-keywords.txt"
- {"i64x2.extmul_high_i32x4_s", TokenType::Binary, Opcode::I64X2ExtmulHighI32X4S},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 519 "src/lexer-keywords.txt"
- {"memory.copy", TokenType::MemoryCopy, Opcode::MemoryCopy},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""},
-#line 77 "src/lexer-keywords.txt"
- {"f32.reinterpret_i32", TokenType::Convert, Opcode::F32ReinterpretI32},
+ {""}, {""}, {""},
+#line 397 "src/lexer-keywords.txt"
+ {"i64.atomic.rmw.sub", TokenType::AtomicRmw, Opcode::I64AtomicRmwSub},
+#line 260 "src/lexer-keywords.txt"
+ {"i32.atomic.rmw.sub", TokenType::AtomicRmw, Opcode::I32AtomicRmwSub},
+#line 495 "src/lexer-keywords.txt"
+ {"i8x16.bitmask", TokenType::Unary, Opcode::I8X16Bitmask},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""},
-#line 182 "src/lexer-keywords.txt"
- {"i16x8.bitmask", TokenType::Unary, Opcode::I16X8Bitmask},
+#line 540 "src/lexer-keywords.txt"
+ {"memory.copy", TokenType::MemoryCopy, Opcode::MemoryCopy},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 204 "src/lexer-keywords.txt"
- {"i16x8.q15mulr_sat_s", TokenType::Binary, Opcode::I16X8Q15mulrSatS},
+ {""}, {""},
+#line 514 "src/lexer-keywords.txt"
+ {"i8x16.popcnt", TokenType::Unary, Opcode::I8X16Popcnt},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 222 "src/lexer-keywords.txt"
- {"i16x8.extend_high_i8x16_u", TokenType::Unary, Opcode::I16X8ExtendHighI8X16U},
- {""},
-#line 221 "src/lexer-keywords.txt"
- {"i16x8.extend_high_i8x16_s", TokenType::Unary, Opcode::I16X8ExtendHighI8X16S},
- {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""},
#line 27 "src/lexer-keywords.txt"
{"assert_unlinkable", TokenType::AssertUnlinkable},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 608 "src/lexer-keywords.txt"
+ {"i8x16.shuffle", TokenType::SimdShuffleOp, Opcode::I8X16Shuffle},
+ {""}, {""}, {""}, {""},
+#line 434 "src/lexer-keywords.txt"
+ {"i64.popcnt", TokenType::Unary, Opcode::I64Popcnt},
+#line 291 "src/lexer-keywords.txt"
+ {"i32.popcnt", TokenType::Unary, Opcode::I32Popcnt},
+ {""}, {""}, {""}, {""},
+#line 175 "src/lexer-keywords.txt"
+ {"f64x2.convert_low_i32x4_u", TokenType::Unary, Opcode::F64X2ConvertLowI32X4U},
+ {""},
+#line 174 "src/lexer-keywords.txt"
+ {"f64x2.convert_low_i32x4_s", TokenType::Unary, Opcode::F64X2ConvertLowI32X4S},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 23 "src/lexer-keywords.txt"
- {"assert_invalid", TokenType::AssertInvalid},
- {""}, {""}, {""},
-#line 587 "src/lexer-keywords.txt"
- {"i8x16.shuffle", TokenType::SimdShuffleOp, Opcode::I8X16Shuffle},
{""}, {""}, {""}, {""}, {""},
-#line 87 "src/lexer-keywords.txt"
- {"f32x4.convert_i32x4_u", TokenType::Unary, Opcode::F32X4ConvertI32X4U},
+#line 227 "src/lexer-keywords.txt"
+ {"i16x8.extadd_pairwise_i8x16_u", TokenType::Unary, Opcode::I16X8ExtaddPairwiseI8X16U},
{""},
-#line 86 "src/lexer-keywords.txt"
- {"f32x4.convert_i32x4_s", TokenType::Unary, Opcode::F32X4ConvertI32X4S},
+#line 226 "src/lexer-keywords.txt"
+ {"i16x8.extadd_pairwise_i8x16_s", TokenType::Unary, Opcode::I16X8ExtaddPairwiseI8X16S},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 537 "src/lexer-keywords.txt"
+ {"memory.atomic.notify", TokenType::AtomicNotify, Opcode::MemoryAtomicNotify},
+ {""}, {""},
+#line 26 "src/lexer-keywords.txt"
+ {"assert_trap", TokenType::AssertTrap},
+#line 78 "src/lexer-keywords.txt"
+ {"f32.reinterpret_i32", TokenType::Convert, Opcode::F32ReinterpretI32},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""},
-#line 219 "src/lexer-keywords.txt"
- {"i16x8.extmul_high_i8x16_u", TokenType::Binary, Opcode::I16X8ExtmulHighI8X16U},
- {""},
-#line 217 "src/lexer-keywords.txt"
- {"i16x8.extmul_high_i8x16_s", TokenType::Binary, Opcode::I16X8ExtmulHighI8X16S},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 139 "src/lexer-keywords.txt"
+ {"f64.promote_f32", TokenType::Convert, Opcode::F64PromoteF32},
+ {""}, {""}, {""}, {""},
+#line 192 "src/lexer-keywords.txt"
+ {"i16x8.dot_i8x16_i7x16_s", TokenType::Binary, Opcode::I16X8DotI8X16I7X16S},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 150 "src/lexer-keywords.txt"
+ {"f64x2.eq", TokenType::Compare, Opcode::F64X2Eq},
{""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 20 "src/lexer-keywords.txt"
- {"array", Type::Array, TokenType::Array},
+#line 462 "src/lexer-keywords.txt"
+ {"i64x2.eq", TokenType::Binary, Opcode::I64X2Eq},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""},
-#line 517 "src/lexer-keywords.txt"
- {"memory.atomic.wait32", TokenType::AtomicWait, Opcode::MemoryAtomicWait32},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 234 "src/lexer-keywords.txt"
+ {"i16x8.extend_high_i8x16_u", TokenType::Unary, Opcode::I16X8ExtendHighI8X16U},
+ {""},
+#line 233 "src/lexer-keywords.txt"
+ {"i16x8.extend_high_i8x16_s", TokenType::Unary, Opcode::I16X8ExtendHighI8X16S},
+ {""}, {""},
+#line 231 "src/lexer-keywords.txt"
+ {"i16x8.extmul_high_i8x16_u", TokenType::Binary, Opcode::I16X8ExtmulHighI8X16U},
+#line 21 "src/lexer-keywords.txt"
+ {"assert_exception", TokenType::AssertException},
+#line 229 "src/lexer-keywords.txt"
+ {"i16x8.extmul_high_i8x16_s", TokenType::Binary, Opcode::I16X8ExtmulHighI8X16S},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 476 "src/lexer-keywords.txt"
- {"i8x16.bitmask", TokenType::Unary, Opcode::I8X16Bitmask},
- {""}, {""}, {""}, {""}, {""},
-#line 518 "src/lexer-keywords.txt"
- {"memory.atomic.wait64", TokenType::AtomicWait, Opcode::MemoryAtomicWait64},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 45 "src/lexer-keywords.txt"
- {"elem.drop", TokenType::ElemDrop, Opcode::ElemDrop},
+ {""}, {""}, {""},
+#line 435 "src/lexer-keywords.txt"
+ {"i64.reinterpret_f64", TokenType::Convert, Opcode::I64ReinterpretF64},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""}, {""}, {""},
-#line 379 "src/lexer-keywords.txt"
- {"i64.atomic.rmw.sub", TokenType::AtomicRmw, Opcode::I64AtomicRmwSub},
-#line 248 "src/lexer-keywords.txt"
- {"i32.atomic.rmw.sub", TokenType::AtomicRmw, Opcode::I32AtomicRmwSub},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""},
-#line 493 "src/lexer-keywords.txt"
- {"i8x16.narrow_i16x8_u", TokenType::Binary, Opcode::I8X16NarrowI16X8U},
- {""},
-#line 492 "src/lexer-keywords.txt"
- {"i8x16.narrow_i16x8_s", TokenType::Binary, Opcode::I8X16NarrowI16X8S},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""},
-#line 166 "src/lexer-keywords.txt"
- {"f64x2.convert_low_i32x4_u", TokenType::Unary, Opcode::F64X2ConvertLowI32X4U},
- {""},
-#line 165 "src/lexer-keywords.txt"
- {"f64x2.convert_low_i32x4_s", TokenType::Unary, Opcode::F64X2ConvertLowI32X4S},
+#line 193 "src/lexer-keywords.txt"
+ {"i16x8.eq", TokenType::Compare, Opcode::I16X8Eq},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""},
-#line 417 "src/lexer-keywords.txt"
- {"i64.reinterpret_f64", TokenType::Convert, Opcode::I64ReinterpretF64},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 46 "src/lexer-keywords.txt"
+ {"elem.drop", TokenType::ElemDrop, Opcode::ElemDrop},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
@@ -1666,12 +1718,12 @@ Perfect_Hash::InWordSet (const char *str, size_t len)
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 214 "src/lexer-keywords.txt"
+ {"i16x8.q15mulr_sat_s", TokenType::Binary, Opcode::I16X8Q15mulrSatS},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""},
-#line 280 "src/lexer-keywords.txt"
- {"i32.reinterpret_f32", TokenType::Convert, Opcode::I32ReinterpretF32},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
@@ -1683,13 +1735,25 @@ Perfect_Hash::InWordSet (const char *str, size_t len)
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 292 "src/lexer-keywords.txt"
+ {"i32.reinterpret_f32", TokenType::Convert, Opcode::I32ReinterpretF32},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""},
#line 28 "src/lexer-keywords.txt"
{"atomic.fence", TokenType::AtomicFence, Opcode::AtomicFence},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""},
+#line 496 "src/lexer-keywords.txt"
+ {"i8x16.eq", TokenType::Compare, Opcode::I8X16Eq},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 512 "src/lexer-keywords.txt"
+ {"i8x16.narrow_i16x8_u", TokenType::Binary, Opcode::I8X16NarrowI16X8U},
+ {""},
+#line 511 "src/lexer-keywords.txt"
+ {"i8x16.narrow_i16x8_s", TokenType::Binary, Opcode::I8X16NarrowI16X8S},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
@@ -1700,9 +1764,6 @@ Perfect_Hash::InWordSet (const char *str, size_t len)
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""}, {""}, {""}, {""}, {""}, {""},
-#line 516 "src/lexer-keywords.txt"
- {"memory.atomic.notify", TokenType::AtomicNotify, Opcode::MemoryAtomicNotify},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
@@ -1711,8 +1772,11 @@ Perfect_Hash::InWordSet (const char *str, size_t len)
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
- {""},
-#line 167 "src/lexer-keywords.txt"
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+#line 176 "src/lexer-keywords.txt"
{"f64x2.promote_low_f32x4", TokenType::Unary, Opcode::F64X2PromoteLowF32X4}
};
diff --git a/src/tools/spectest-interp.cc b/src/tools/spectest-interp.cc
index 6b07fa46..711aebc2 100644
--- a/src/tools/spectest-interp.cc
+++ b/src/tools/spectest-interp.cc
@@ -280,6 +280,7 @@ class AssertReturnCommand : public CommandMixin<CommandType::AssertReturn> {
public:
Action action;
std::vector<ExpectedValue> expected;
+ bool expect_either;
};
template <CommandType TypeEnum>
@@ -1078,7 +1079,12 @@ wabt::Result JSONParser::ParseCommand(CommandPtr* out_command) {
EXPECT(",");
CHECK_RESULT(ParseAction(&command->action));
EXPECT(",");
- EXPECT_KEY("expected");
+ if (Match("\"either\"")) {
+ EXPECT(":");
+ command->expect_either = true;
+ } else {
+ EXPECT_KEY("expected");
+ }
CHECK_RESULT(ParseExpectedValues(&command->expected));
*out_command = std::move(command);
} else if (Match("\"assert_trap\"")) {
@@ -1746,11 +1752,14 @@ wabt::Result CommandRunner::CheckAssertReturnResult(
if (Failed(CheckAssertReturnResult(command, index, lane_expected,
lane_actual, false))) {
- PrintError(command->line,
- "mismatch in lane %u of result %u of assert_return: "
- "expected %s, got %s",
- lane, index, ExpectedValueToString(lane_expected).c_str(),
- TypedValueToString(lane_actual).c_str());
+ if (print_error) {
+ PrintError(command->line,
+ "mismatch in lane %u of result %u of assert_return: "
+ "expected %s, got %s",
+ lane, index,
+ ExpectedValueToString(lane_expected).c_str(),
+ TypedValueToString(lane_actual).c_str());
+ }
ok = false;
}
}
@@ -1791,23 +1800,46 @@ wabt::Result CommandRunner::OnAssertReturnCommand(
return wabt::Result::Error;
}
- if (action_result.values.size() != command->expected.size()) {
+ if (command->expect_either) {
+ if (action_result.values.size() != 1) {
+ PrintError(command->line,
+ "\"either\" requires single result but got %" PRIzd,
+ action_result.values.size());
+ return wabt::Result::Error;
+ }
+
+ TypedValue actual{action_result.types[0], action_result.values[0]};
+ for (size_t i = 0; i < command->expected.size(); ++i) {
+ const ExpectedValue& expected = command->expected[i];
+ if (Succeeded(
+ CheckAssertReturnResult(command, i, expected, actual, false))) {
+ return wabt::Result::Ok;
+ }
+ }
PrintError(command->line,
- "result length mismatch in assert_return: expected %" PRIzd
- ", got %" PRIzd,
- command->expected.size(), action_result.values.size());
+ "mismatch in result of assert_return: expected %s (%" PRIzd
+ " alternatives), got %s",
+ ExpectedValueToString(command->expected[0]).c_str(),
+ command->expected.size(), TypedValueToString(actual).c_str());
return wabt::Result::Error;
- }
+ } else {
+ if (action_result.values.size() != command->expected.size()) {
+ PrintError(command->line,
+ "result length mismatch in assert_return: expected %" PRIzd
+ ", got %" PRIzd,
+ command->expected.size(), action_result.values.size());
+ return wabt::Result::Error;
+ }
- wabt::Result result = wabt::Result::Ok;
- for (size_t i = 0; i < action_result.values.size(); ++i) {
- const ExpectedValue& expected = command->expected[i];
- TypedValue actual{action_result.types[i], action_result.values[i]};
+ wabt::Result result = wabt::Result::Ok;
+ for (size_t i = 0; i < action_result.values.size(); ++i) {
+ const ExpectedValue& expected = command->expected[i];
+ TypedValue actual{action_result.types[i], action_result.values[i]};
- result |= CheckAssertReturnResult(command, i, expected, actual, true);
+ result |= CheckAssertReturnResult(command, i, expected, actual, true);
+ }
+ return result;
}
-
- return result;
}
wabt::Result CommandRunner::OnAssertTrapCommand(
diff --git a/src/validator.cc b/src/validator.cc
index c1ef6422..73b63b9e 100644
--- a/src/validator.cc
+++ b/src/validator.cc
@@ -66,6 +66,14 @@ class ScriptValidator {
const TypeVector& actual,
const TypeVector& expected,
const char* desc);
+ void CheckExpectation(const Location* loc,
+ const TypeVector& result_types,
+ const ConstVector& expected,
+ const char* desc);
+ void CheckExpectationTypes(const Location* loc,
+ const TypeVector& result_types,
+ const Expectation* expect,
+ const char* desc);
const TypeVector* CheckInvoke(const InvokeAction* action);
Result CheckGet(const GetAction* action, Type* out_type);
@@ -206,6 +214,39 @@ void ScriptValidator::CheckResultTypes(const Location* loc,
}
}
+void ScriptValidator::CheckExpectation(const Location* loc,
+ const TypeVector& result_types,
+ const ConstVector& expected,
+ const char* desc) {
+ // Here we take the concrete expected output types verify those actains
+ // the types that are the result of the action.
+ TypeVector actual_types;
+ for (auto ex : expected) {
+ actual_types.push_back(ex.type());
+ }
+ CheckResultTypes(loc, actual_types, result_types, desc);
+}
+
+void ScriptValidator::CheckExpectationTypes(const Location* loc,
+ const TypeVector& result_types,
+ const Expectation* expect,
+ const char* desc) {
+ switch (expect->type()) {
+ case ExpectationType::Values: {
+ CheckExpectation(loc, result_types, expect->expected, desc);
+ break;
+ }
+
+ case ExpectationType::Either: {
+ auto* either = cast<EitherExpectation>(expect);
+ for (auto alt : either->expected) {
+ CheckExpectation(loc, result_types, {alt}, desc);
+ }
+ break;
+ }
+ }
+}
+
Type Validator::GetDeclarationType(const FuncDeclaration& decl) {
if (decl.has_func_type) {
return Type(decl.type_var.index());
@@ -984,19 +1025,16 @@ void ScriptValidator::CheckCommand(const Command* command) {
auto* assert_return_command = cast<AssertReturnCommand>(command);
const Action* action = assert_return_command->action.get();
ActionResult result = CheckAction(action);
- // Here we take the concrete expected output types verify those actains
- // the types that are the result of the action.
- TypeVector actual_types;
- for (auto ex : assert_return_command->expected) {
- actual_types.push_back(ex.type());
- }
+ const Expectation* expected = assert_return_command->expected.get();
switch (result.kind) {
case ActionResult::Kind::Types:
- CheckResultTypes(&action->loc, actual_types, *result.types, "action");
+ CheckExpectationTypes(&action->loc, *result.types, expected,
+ "action");
break;
case ActionResult::Kind::Type:
- CheckResultTypes(&action->loc, actual_types, {result.type}, "action");
+ CheckExpectationTypes(&action->loc, {result.type}, expected,
+ "action");
break;
case ActionResult::Kind::Error:
diff --git a/src/wast-parser.cc b/src/wast-parser.cc
index ef080632..330844cb 100644
--- a/src/wast-parser.cc
+++ b/src/wast-parser.cc
@@ -3251,7 +3251,7 @@ Result WastParser::ParseAssertReturnCommand(CommandPtr* out_command) {
EXPECT(AssertReturn);
auto command = MakeUnique<AssertReturnCommand>();
CHECK_RESULT(ParseAction(&command->action));
- CHECK_RESULT(ParseConstList(&command->expected, ConstType::Expectation));
+ CHECK_RESULT(ParseExpectedValues(&command->expected));
EXPECT(Rpar);
*out_command = std::move(command);
return Result::Ok;
@@ -3436,6 +3436,29 @@ Result WastParser::ParseAction(ActionPtr* out_action) {
return Result::Ok;
}
+Result WastParser::ParseExpectedValues(ExpectationPtr* expectation) {
+ WABT_TRACE(ParseExpectedValues);
+ Location loc = GetLocation();
+ if (PeekMatchLpar(TokenType::Either)) {
+ auto either = MakeUnique<EitherExpectation>(loc);
+ CHECK_RESULT(ParseEither(&either->expected));
+ *expectation = std::move(either);
+ } else {
+ auto values = MakeUnique<ValueExpectation>(loc);
+ CHECK_RESULT(ParseConstList(&values->expected, ConstType::Expectation));
+ *expectation = std::move(values);
+ }
+ return Result::Ok;
+}
+
+Result WastParser::ParseEither(ConstVector* alternatives) {
+ WABT_TRACE(ParseEither);
+ MatchLpar(TokenType::Either);
+ CHECK_RESULT(ParseConstList(alternatives, ConstType::Expectation));
+ EXPECT(Rpar);
+ return Result::Ok;
+}
+
Result WastParser::ParseScriptModule(
std::unique_ptr<ScriptModule>* out_module) {
WABT_TRACE(ParseScriptModule);
diff --git a/test/help/spectest-interp.txt b/test/help/spectest-interp.txt
index bbb68061..0bbeb97b 100644
--- a/test/help/spectest-interp.txt
+++ b/test/help/spectest-interp.txt
@@ -30,6 +30,7 @@ options:
--enable-memory64 Enable 64-bit memory
--enable-multi-memory Enable Multi-memory
--enable-extended-const Enable Extended constant expressions
+ --enable-relaxed-simd Enable Relaxed SIMD
--enable-all Enable all features
-V, --value-stack-size=SIZE Size in elements of the value stack
-C, --call-stack-size=SIZE Size in elements of the call stack
diff --git a/test/help/wasm-interp.txt b/test/help/wasm-interp.txt
index f6dc26b7..9a6eb811 100644
--- a/test/help/wasm-interp.txt
+++ b/test/help/wasm-interp.txt
@@ -41,6 +41,7 @@ options:
--enable-memory64 Enable 64-bit memory
--enable-multi-memory Enable Multi-memory
--enable-extended-const Enable Extended constant expressions
+ --enable-relaxed-simd Enable Relaxed SIMD
--enable-all Enable all features
-V, --value-stack-size=SIZE Size in elements of the value stack
-C, --call-stack-size=SIZE Size in elements of the call stack
diff --git a/test/help/wasm-opcodecnt.txt b/test/help/wasm-opcodecnt.txt
index 2a0606b9..d6899d61 100644
--- a/test/help/wasm-opcodecnt.txt
+++ b/test/help/wasm-opcodecnt.txt
@@ -31,6 +31,7 @@ options:
--enable-memory64 Enable 64-bit memory
--enable-multi-memory Enable Multi-memory
--enable-extended-const Enable Extended constant expressions
+ --enable-relaxed-simd Enable Relaxed SIMD
--enable-all Enable all features
-o, --output=FILENAME Output file for the opcode counts, by default use stdout
-c, --cutoff=N Cutoff for reporting counts less than N
diff --git a/test/help/wasm-validate.txt b/test/help/wasm-validate.txt
index 4ceeb329..8e3de11b 100644
--- a/test/help/wasm-validate.txt
+++ b/test/help/wasm-validate.txt
@@ -30,6 +30,7 @@ options:
--enable-memory64 Enable 64-bit memory
--enable-multi-memory Enable Multi-memory
--enable-extended-const Enable Extended constant expressions
+ --enable-relaxed-simd Enable Relaxed SIMD
--enable-all Enable all features
--no-debug-names Ignore debug names in the binary file
--ignore-custom-section-errors Ignore errors in custom sections
diff --git a/test/help/wasm2wat.txt b/test/help/wasm2wat.txt
index a2b78d31..39f7ae35 100644
--- a/test/help/wasm2wat.txt
+++ b/test/help/wasm2wat.txt
@@ -36,6 +36,7 @@ options:
--enable-memory64 Enable 64-bit memory
--enable-multi-memory Enable Multi-memory
--enable-extended-const Enable Extended constant expressions
+ --enable-relaxed-simd Enable Relaxed SIMD
--enable-all Enable all features
--inline-exports Write all exports inline
--inline-imports Write all imports inline
diff --git a/test/help/wast2json.txt b/test/help/wast2json.txt
index 95fa3a3e..d6888fc2 100644
--- a/test/help/wast2json.txt
+++ b/test/help/wast2json.txt
@@ -33,6 +33,7 @@ options:
--enable-memory64 Enable 64-bit memory
--enable-multi-memory Enable Multi-memory
--enable-extended-const Enable Extended constant expressions
+ --enable-relaxed-simd Enable Relaxed SIMD
--enable-all Enable all features
-o, --output=FILE output JSON file
-r, --relocatable Create a relocatable wasm binary (suitable for linking with e.g. lld)
diff --git a/test/help/wat-desugar.txt b/test/help/wat-desugar.txt
index 268fd600..5d84034f 100644
--- a/test/help/wat-desugar.txt
+++ b/test/help/wat-desugar.txt
@@ -40,6 +40,7 @@ options:
--enable-memory64 Enable 64-bit memory
--enable-multi-memory Enable Multi-memory
--enable-extended-const Enable Extended constant expressions
+ --enable-relaxed-simd Enable Relaxed SIMD
--enable-all Enable all features
--generate-names Give auto-generated names to non-named functions, types, etc.
;;; STDOUT ;;)
diff --git a/test/help/wat2wasm.txt b/test/help/wat2wasm.txt
index b4a6d1d0..31ca9714 100644
--- a/test/help/wat2wasm.txt
+++ b/test/help/wat2wasm.txt
@@ -40,6 +40,7 @@ options:
--enable-memory64 Enable 64-bit memory
--enable-multi-memory Enable Multi-memory
--enable-extended-const Enable Extended constant expressions
+ --enable-relaxed-simd Enable Relaxed SIMD
--enable-all Enable all features
-o, --output=FILE Output wasm binary file. Use "-" to write to stdout.
-r, --relocatable Create a relocatable wasm binary (suitable for linking with e.g. lld)
diff --git a/test/spec/relaxed-simd/i16x8_relaxed_q15mulr_s.txt b/test/spec/relaxed-simd/i16x8_relaxed_q15mulr_s.txt
new file mode 100644
index 00000000..59174d0b
--- /dev/null
+++ b/test/spec/relaxed-simd/i16x8_relaxed_q15mulr_s.txt
@@ -0,0 +1,6 @@
+;;; TOOL: run-interp-spec
+;;; STDIN_FILE: third_party/testsuite/proposals/relaxed-simd/i16x8_relaxed_q15mulr_s.wast
+;;; ARGS*: --enable-relaxed-simd
+(;; STDOUT ;;;
+2/2 tests passed.
+;;; STDOUT ;;)
diff --git a/test/spec/relaxed-simd/i32x4_relaxed_trunc.txt b/test/spec/relaxed-simd/i32x4_relaxed_trunc.txt
new file mode 100644
index 00000000..cfa9d06b
--- /dev/null
+++ b/test/spec/relaxed-simd/i32x4_relaxed_trunc.txt
@@ -0,0 +1,6 @@
+;;; TOOL: run-interp-spec
+;;; STDIN_FILE: third_party/testsuite/proposals/relaxed-simd/i32x4_relaxed_trunc.wast
+;;; ARGS*: --enable-relaxed-simd
+(;; STDOUT ;;;
+9/9 tests passed.
+;;; STDOUT ;;)
diff --git a/test/spec/relaxed-simd/i8x16_relaxed_swizzle.txt b/test/spec/relaxed-simd/i8x16_relaxed_swizzle.txt
new file mode 100644
index 00000000..c57b5842
--- /dev/null
+++ b/test/spec/relaxed-simd/i8x16_relaxed_swizzle.txt
@@ -0,0 +1,6 @@
+;;; TOOL: run-interp-spec
+;;; STDIN_FILE: third_party/testsuite/proposals/relaxed-simd/i8x16_relaxed_swizzle.wast
+;;; ARGS*: --enable-relaxed-simd
+(;; STDOUT ;;;
+4/4 tests passed.
+;;; STDOUT ;;)
diff --git a/test/spec/relaxed-simd/relaxed_laneselect.txt b/test/spec/relaxed-simd/relaxed_laneselect.txt
new file mode 100644
index 00000000..59d901b4
--- /dev/null
+++ b/test/spec/relaxed-simd/relaxed_laneselect.txt
@@ -0,0 +1,6 @@
+;;; TOOL: run-interp-spec
+;;; STDIN_FILE: third_party/testsuite/proposals/relaxed-simd/relaxed_laneselect.wast
+;;; ARGS*: --enable-relaxed-simd
+(;; STDOUT ;;;
+6/6 tests passed.
+;;; STDOUT ;;)
diff --git a/test/spec/relaxed-simd/relaxed_madd_nmadd.txt b/test/spec/relaxed-simd/relaxed_madd_nmadd.txt
new file mode 100644
index 00000000..23a59b0d
--- /dev/null
+++ b/test/spec/relaxed-simd/relaxed_madd_nmadd.txt
@@ -0,0 +1,6 @@
+;;; TOOL: run-interp-spec
+;;; STDIN_FILE: third_party/testsuite/proposals/relaxed-simd/relaxed_madd_nmadd.wast
+;;; ARGS*: --enable-relaxed-simd
+(;; STDOUT ;;;
+7/7 tests passed.
+;;; STDOUT ;;)
diff --git a/test/spec/relaxed-simd/relaxed_min_max.txt b/test/spec/relaxed-simd/relaxed_min_max.txt
new file mode 100644
index 00000000..18b35b22
--- /dev/null
+++ b/test/spec/relaxed-simd/relaxed_min_max.txt
@@ -0,0 +1,6 @@
+;;; TOOL: run-interp-spec
+;;; STDIN_FILE: third_party/testsuite/proposals/relaxed-simd/relaxed_min_max.wast
+;;; ARGS*: --enable-relaxed-simd
+(;; STDOUT ;;;
+13/13 tests passed.
+;;; STDOUT ;;)
diff --git a/test/update-spec-tests.py b/test/update-spec-tests.py
index 8e796346..88399eac 100755
--- a/test/update-spec-tests.py
+++ b/test/update-spec-tests.py
@@ -94,6 +94,7 @@ def main(args):
'exception-handling': '--enable-exceptions',
'extended-const': '--enable-extended-const',
'tail-call': '--enable-tail-call',
+ 'relaxed-simd': '--enable-relaxed-simd',
}
unimplemented = set([