diff options
author | Thomas Lively <tlively@google.com> | 2023-12-12 11:25:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 11:25:53 -0800 |
commit | a2a59e96f8f18e00e8aea9627d3b15d894d5a825 (patch) | |
tree | 6692c7556659ddb2a72178ed931445eb112c60f2 /test/unit | |
parent | 71dad8795112b5c9ed1442450fa7e7bbe33622d1 (diff) | |
download | binaryen-a2a59e96f8f18e00e8aea9627d3b15d894d5a825.tar.gz binaryen-a2a59e96f8f18e00e8aea9627d3b15d894d5a825.tar.bz2 binaryen-a2a59e96f8f18e00e8aea9627d3b15d894d5a825.zip |
Update `tuple.make` text format to include arity (#6169)
Previously, the number of tuple elements was inferred from the number of
s-expression children of the `tuple.make` expression, but that scheme would not
work in the new wat parser, where s-expressions are optional and cannot be
semantically meaningful.
Update the text format to take the number of tuple elements (i.e. the tuple
arity) as an immediate. This new format will be able to be implemented in the
new parser as follow-on work.
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/test_features.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/test_features.py b/test/unit/test_features.py index cd8aebbb1..8e38a04f8 100644 --- a/test/unit/test_features.py +++ b/test/unit/test_features.py @@ -213,7 +213,7 @@ class FeatureValidationTest(utils.BinaryenTestCase): module = ''' (module (func $foo (result i32 i64) - (tuple.make + (tuple.make 2 (i32.const 42) (i64.const 42) ) @@ -237,7 +237,7 @@ class FeatureValidationTest(utils.BinaryenTestCase): (func $foo (drop (block (result i32 i64) - (tuple.make + (tuple.make 2 (i32.const 42) (i64.const 42) ) |