Skip to content

Commit 7612271

Browse files
authored
Update constant expression validation rules (#17)
These changes a published here: https://webassembly.github.io/extended-const/core/valid/instructions.html#constant-expressions
1 parent 02bac88 commit 7612271

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

document/core/valid/instructions.rst

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,6 +1604,8 @@ Constant Expressions
16041604

16051605
* either of the form :math:`t.\CONST~c`,
16061606

1607+
* or of the form :math:`\K{i}\X{nn}\K{.}\ibinop`, where :math:`\ibinop` is limited to :math:`\ADD`, :math:`\SUB`, or :math:`\MUL`.
1608+
16071609
* or of the form :math:`\REFNULL`,
16081610

16091611
* or of the form :math:`\REFFUNC~x`,
@@ -1619,18 +1621,9 @@ Constant Expressions
16191621
16201622
.. math::
16211623
\frac{
1624+
\ibinop \in \{\ADD, \SUB, \MUL\}
16221625
}{
1623-
C \vdashinstrconst t.\CONST~c \const
1624-
}
1625-
\qquad
1626-
\frac{
1627-
}{
1628-
C \vdashinstrconst \REFNULL~t \const
1629-
}
1630-
\qquad
1631-
\frac{
1632-
}{
1633-
C \vdashinstrconst \REFFUNC~x \const
1626+
C \vdashinstrconst \K{i}\X{nn}\K{.}\ibinop \const
16341627
}
16351628
16361629
.. math::

0 commit comments

Comments
 (0)