Skip to content

Commit

Permalink
Optional table indices (#667)
Browse files Browse the repository at this point in the history
* Allow all optional table indices

https://webassembly.github.io/spec/core/text/instructions.html#id1

* Update wasm tests submodule.

The `tokens.wast` test is tracked in #662.

* Set Version: 0.1.76

* Set Version: 0.1.77

---------

Co-authored-by: devops <[email protected]>
Co-authored-by: rv-jenkins <[email protected]>
  • Loading branch information
3 people authored Jul 5, 2024
1 parent c272c7b commit a3a8600
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.76
0.1.77
2 changes: 1 addition & 1 deletion pykwasm/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "pykwasm"
version = "0.1.76"
version = "0.1.77"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
22 changes: 17 additions & 5 deletions pykwasm/src/pykwasm/kdist/wasm-semantics/wasm-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,29 @@ module WASM-TEXT-COMMON-SYNTAX
| "table.grow" Index
| "table.fill" Index
| "table.copy" Index Index
| "table.copy" [macro]
| "table.init" Index Index
| "table.init" Index [macro]
| "elem.drop" Index
| "call_indirect" Index TypeUse
| "call_indirect" TypeUse [macro]
// ---------------------------------------
// ---------------------------------------------------
// Abbreviations
syntax PlainInstr ::= "table.get" [macro]
| "table.set" [macro]
| "table.size" [macro]
| "table.grow" [macro]
| "table.fill" [macro]
| "table.copy" [macro]
| "table.init" Index [macro]
| "call_indirect" TypeUse [macro]
// -----------------------------------------------------
rule table.get => table.get 0
rule table.set => table.set 0
rule table.size => table.size 0
rule table.grow => table.grow 0
rule table.fill => table.fill 0
rule table.copy => table.copy 0 0
rule table.init I => table.init 0 I
rule call_indirect TU:TypeUse => call_indirect 0 TU
rule table.copy => table.copy 0 0
syntax PlainInstr ::= IValType "." StoreOpM
| FValType "." StoreOpM
Expand Down
1 change: 1 addition & 0 deletions tests/conformance/unparseable.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ memory.wast
select.wast
skip-stack-guard-page.wast
table_copy.wast
tokens.wast
1 change: 1 addition & 0 deletions tests/conformance/unsupported-llvm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ left-to-right.wast
linking.wast
memory_redundancy.wast
memory_trap.wast
tokens.wast
traps.wast
2 changes: 1 addition & 1 deletion tests/wasm-tests
Submodule wasm-tests updated 278 files

0 comments on commit a3a8600

Please sign in to comment.