Skip to content

Commit 192b9ce

Browse files
authored
Move sign-extension-ops before saturating truncation ops. (#1192)
Address comment in #1144 (comment).
1 parent cc2d59b commit 192b9ce

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

document/core/binary/instructions.rst

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,16 @@ All other numeric instructions are plain opcodes without any immediates.
374374
\hex{BF} &\Rightarrow& \F64.\REINTERPRET\K{\_}\I64 \\
375375
\end{array}
376376
377+
.. math::
378+
\begin{array}{llclll}
379+
\phantom{\production{instruction}} & \phantom{\Binstr} &\phantom{::=}& \phantom{\dots} && \phantom{thisshouldbeenough} \\[-2ex] &&|&
380+
\hex{C0} &\Rightarrow& \I32.\EXTEND\K{8\_s} \\ &&|&
381+
\hex{C1} &\Rightarrow& \I32.\EXTEND\K{16\_s} \\ &&|&
382+
\hex{C2} &\Rightarrow& \I64.\EXTEND\K{8\_s} \\ &&|&
383+
\hex{C3} &\Rightarrow& \I64.\EXTEND\K{16\_s} \\ &&|&
384+
\hex{C4} &\Rightarrow& \I64.\EXTEND\K{32\_s} \\
385+
\end{array}
386+
377387
.. _binary-cvtop-trunc-sat:
378388

379389
The saturating truncation instructions all have a one byte prefix.
@@ -392,17 +402,6 @@ The saturating truncation instructions all have a one byte prefix.
392402
\end{array}
393403
394404
395-
.. math::
396-
\begin{array}{llclll}
397-
\phantom{\production{instruction}} & \phantom{\Binstr} &\phantom{::=}& \phantom{\dots} && \phantom{thisshouldbeenough} \\[-2ex] &&|&
398-
\hex{C0} &\Rightarrow& \I32.\EXTEND\K{8\_s} \\ &&|&
399-
\hex{C1} &\Rightarrow& \I32.\EXTEND\K{16\_s} \\ &&|&
400-
\hex{C2} &\Rightarrow& \I64.\EXTEND\K{8\_s} \\ &&|&
401-
\hex{C3} &\Rightarrow& \I64.\EXTEND\K{16\_s} \\ &&|&
402-
\hex{C4} &\Rightarrow& \I64.\EXTEND\K{32\_s} \\
403-
\end{array}
404-
405-
406405
.. index:: expression
407406
pair: binary format; expression
408407
single: expression; constant

0 commit comments

Comments
 (0)