Skip to content

Commit c7eef19

Browse files
authored
[spec] Fix typo in shape.all_true and txN.bitmask instruction execution (WebAssembly#1710)
1 parent f83a375 commit c7eef19

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

document/core/exec/instructions.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -669,9 +669,9 @@ Most other vector instructions are defined in terms of numeric operators that ar
669669

670670
1. Assert: due to :ref:`validation <valid-vtestop>`, a value of :ref:`value type <syntax-valtype>` |V128| is on the top of the stack.
671671

672-
2. Pop the value :math:`\V128.\VCONST~c_1` from the stack.
672+
2. Pop the value :math:`\V128.\VCONST~c` from the stack.
673673

674-
3. Let :math:`i_1^\ast` be the result of computing :math:`\lanes_{\shape}(c_1)`.
674+
3. Let :math:`i_1^\ast` be the result of computing :math:`\lanes_{\shape}(c)`.
675675

676676
4. Let :math:`i` be the result of computing :math:`\bool(\bigwedge(i_1 \neq 0)^\ast)`.
677677

@@ -681,7 +681,7 @@ Most other vector instructions are defined in terms of numeric operators that ar
681681
.. math::
682682
\begin{array}{l}
683683
\begin{array}{lcl@{\qquad}l}
684-
(\V128\K{.}\VCONST~c_1)~\shape\K{.}\ALLTRUE &\stepto& (\I32\K{.}\CONST~i)
684+
(\V128\K{.}\VCONST~c)~\shape\K{.}\ALLTRUE &\stepto& (\I32\K{.}\CONST~i)
685685
\end{array}
686686
\\ \qquad
687687
\begin{array}[t]{@{}r@{~}l@{}}
@@ -698,7 +698,7 @@ Most other vector instructions are defined in terms of numeric operators that ar
698698

699699
1. Assert: due to :ref:`validation <valid-vec-bitmask>`, a value of :ref:`value type <syntax-valtype>` |V128| is on the top of the stack.
700700

701-
2. Pop the value :math:`\V128.\VCONST~c_1` from the stack.
701+
2. Pop the value :math:`\V128.\VCONST~c` from the stack.
702702

703703
3. Let :math:`i_1^N` be the result of computing :math:`\lanes_{t\K{x}N}(c)`.
704704

@@ -708,14 +708,14 @@ Most other vector instructions are defined in terms of numeric operators that ar
708708

709709
6. Let :math:`j^\ast` be the concatenation of the two sequences :math:`i_2^N` and :math:`0^{32-N}`.
710710

711-
7. Let :math:`c` be the result of computing :math:`\ibits_{32}^{-1}(j^\ast)`.
711+
7. Let :math:`i` be the result of computing :math:`\ibits_{32}^{-1}(j^\ast)`.
712712

713-
8. Push the value :math:`\I32.\CONST~c` onto the stack.
713+
8. Push the value :math:`\I32.\CONST~i` onto the stack.
714714

715715
.. math::
716716
\begin{array}{lcl@{\qquad}l}
717-
(\V128\K{.}\VCONST~c_1)~t\K{x}N\K{.}\BITMASK &\stepto& (\I32\K{.}\CONST~c)
718-
& (\iff c = \ibits_{32}^{-1}(\ilts_{|t|}(\lanes_{t\K{x}N}(c), 0^N)))
717+
(\V128\K{.}\VCONST~c)~t\K{x}N\K{.}\BITMASK &\stepto& (\I32\K{.}\CONST~i)
718+
& (\iff i = \ibits_{32}^{-1}(\ilts_{|t|}(\lanes_{t\K{x}N}(c), 0^N)))
719719
\\
720720
\end{array}
721721

0 commit comments

Comments
 (0)