@@ -513,31 +513,31 @@ Most other vector instructions are defined in terms of numeric operators that ar
513
513
514
514
1. Assert: due to :ref: `validation <valid-vec-replace_lane >`, :math: `x < \dim (\shape )`.
515
515
516
- 2. Let :math: `t_ 1 ` be the type :math: `\unpacked (\shape )`.
516
+ 2. Let :math: `t_ 2 ` be the type :math: `\unpacked (\shape )`.
517
517
518
518
3. Assert: due to :ref: `validation <valid-vec-replace_lane >`, a value of :ref: `value type <syntax-valtype >` :math: `t_1 ` is on the top of the stack.
519
519
520
- 4. Pop the value :math: `t_ 1 .\CONST ~c_ 1 ` from the stack.
520
+ 4. Pop the value :math: `t_ 2 .\CONST ~c_ 2 ` from the stack.
521
521
522
522
5. Assert: due to :ref: `validation <valid-vec-replace_lane >`, a value of :ref: `value type <syntax-valtype >` |V128 | is on the top of the stack.
523
523
524
- 6. Pop the value :math: `\V128 .\VCONST ~c_ 2 ` from the stack.
524
+ 6. Pop the value :math: `\V128 .\VCONST ~c_ 1 ` from the stack.
525
525
526
- 7. Let :math: `i^\ast ` be the result of computing :math: `\lanes _{\shape }(c_ 2 )`.
526
+ 7. Let :math: `i^\ast ` be the result of computing :math: `\lanes _{\shape }(c_ 1 )`.
527
527
528
- 8. Let :math: `c` be the result of computing :math: `\lanes ^{-1 }_{\shape }(i^\ast \with [x] = c_ 1 )`.
528
+ 8. Let :math: `c` be the result of computing :math: `\lanes ^{-1 }_{\shape }(i^\ast \with [x] = c_ 2 )`.
529
529
530
530
9. Push :math: `\V128 .\VCONST ~c` on the stack.
531
531
532
532
.. math ::
533
533
\begin {array}{l}
534
534
\begin {array}{lcl@{\qquad }l}
535
- (t_ 1 \ K {.}\CONST ~c_1 )~(\V 128 \ K {.}\VCONST ~c_2 )~(\shape\K {.}\REPLACELANE ~x) &\stepto & (\V128 \K {.}\VCONST ~c)
535
+ (\V 128 \ K {.}\VCONST ~c_1 )~(t_ 2 \ K {.}\CONST ~c_2 )~(\shape\K {.}\REPLACELANE ~x) &\stepto & (\V128 \K {.}\VCONST ~c)
536
536
\end {array}
537
537
\\ \qquad
538
538
\begin {array}[t]{@{}r@{~}l@{}}
539
- (\iff & i^\ast = \lanes _{\shape }(c_ 2 ) \\
540
- \wedge & c = \lanes ^{-1 }_{\shape }(i^\ast \with [x] = c_ 1 ))
539
+ (\iff & i^\ast = \lanes _{\shape }(c_ 1 ) \\
540
+ \wedge & c = \lanes ^{-1 }_{\shape }(i^\ast \with [x] = c_ 2 ))
541
541
\end {array}
542
542
\end {array}
543
543
0 commit comments