Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit ab6a361

Browse files
committed
[spec-text] Add i64x2.abs
This was merged in #413.
1 parent 14436c0 commit ab6a361

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

document/core/appendix/gen-index-instructions.py

+1
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ def Instruction(name, opcode, type=None, validation=None, execution=None, operat
469469
Instruction(r'\I32X4.\VMIN\K{\_u}', r'\hex{FD}~~183', r'[\V128~\V128] \to [\V128]', r'valid-vbinop', r'exec-vbinop', r'op-imin_u'),
470470
Instruction(r'\I32X4.\VMAX\K{\_s}', r'\hex{FD}~~184', r'[\V128~\V128] \to [\V128]', r'valid-vbinop', r'exec-vbinop', r'op-imax_s'),
471471
Instruction(r'\I32X4.\VMAX\K{\_u}', r'\hex{FD}~~185', r'[\V128~\V128] \to [\V128]', r'valid-vbinop', r'exec-vbinop', r'op-imax_u'),
472+
Instruction(r'\I64X2.\VABS', r'\hex{FD}~~162', r'[\V128] \to [\V128]', r'valid-vunop', r'exec-vunop', r'op-iabs'),
472473
Instruction(r'\I64X2.\VNEG', r'\hex{FD}~~193', r'[\V128] \to [\V128]', r'valid-vunop', r'exec-vunop', r'op-ineg'),
473474
Instruction(r'\I64X2.\BITMASK', r'\hex{FD}~~196', r'[\V128] \to [\I32]', r'valid-simd-bitmask', r'exec-simd-bitmask'),
474475
Instruction(r'\I64X2.\WIDEN\K{\_low\_i32x4\_s}', r'\hex{FD}~~199', r'[\V128] \to [\V128]', r'valid-vunop', r'exec-simd-widen'),

document/core/appendix/index-instructions.rst

+1
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ Instruction Binary Opcode Type
417417
:math:`\I32X4.\VMIN\K{\_u}` :math:`\hex{FD}~~183` :math:`[\V128~\V128] \to [\V128]` :ref:`validation <valid-vbinop>` :ref:`execution <exec-vbinop>`, :ref:`operator <op-imin_u>`
418418
:math:`\I32X4.\VMAX\K{\_s}` :math:`\hex{FD}~~184` :math:`[\V128~\V128] \to [\V128]` :ref:`validation <valid-vbinop>` :ref:`execution <exec-vbinop>`, :ref:`operator <op-imax_s>`
419419
:math:`\I32X4.\VMAX\K{\_u}` :math:`\hex{FD}~~185` :math:`[\V128~\V128] \to [\V128]` :ref:`validation <valid-vbinop>` :ref:`execution <exec-vbinop>`, :ref:`operator <op-imax_u>`
420+
:math:`\I64X2.\VABS` :math:`\hex{FD}~~162` :math:`[\V128] \to [\V128]` :ref:`validation <valid-vunop>` :ref:`execution <exec-vunop>`, :ref:`operator <op-iabs>`
420421
:math:`\I64X2.\VNEG` :math:`\hex{FD}~~193` :math:`[\V128] \to [\V128]` :ref:`validation <valid-vunop>` :ref:`execution <exec-vunop>`, :ref:`operator <op-ineg>`
421422
:math:`\I64X2.\BITMASK` :math:`\hex{FD}~~196` :math:`[\V128] \to [\I32]` :ref:`validation <valid-simd-bitmask>` :ref:`execution <exec-simd-bitmask>`
422423
:math:`\I64X2.\WIDEN\K{\_low\_i32x4\_s}` :math:`\hex{FD}~~199` :math:`[\V128] \to [\V128]` :ref:`validation <valid-vunop>` :ref:`execution <exec-simd-widen>`

document/core/binary/instructions.rst

+1
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ All other SIMD instructions are plain opcodes without any immediates.
667667
.. math::
668668
\begin{array}{llclll}
669669
\phantom{\production{instruction}} & \phantom{\Binstr} &\phantom{::=}& \phantom{\dots} && \phantom{simdhaslongerinstructionnames} \\[-2ex] &&|&
670+
\hex{FD}~~162{:}\Bu32 &\Rightarrow& \I64X2.\VABS \\ &&|&
670671
\hex{FD}~~193{:}\Bu32 &\Rightarrow& \I64X2.\VNEG \\ &&|&
671672
\hex{FD}~~196{:}\Bu32 &\Rightarrow& \I64X2.\BITMASK \\ &&|&
672673
\hex{FD}~~199{:}\Bu32 &\Rightarrow& \I64X2.\WIDEN\K{\_low\_i32x4\_s} \\ &&|&

document/core/syntax/instructions.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ SIMD instructions provide basic operations over :ref:`values <syntax-value>` of
233233
\fshape\K{.}\vfrelop \\&&|&
234234
\K{i8x16.}\viunop ~|~
235235
\K{i16x8.}\viunop ~|~
236-
\K{i32x4.}\viunop \\&&|&
236+
\K{i32x4.}\viunop ~|~
237+
\K{i64x2.}\viunop \\&&|&
237238
\K{i8x16.}\VPOPCNT \\&&|&
238-
\K{i64x2.}\VNEG \\&&|&
239239
\fshape\K{.}\vfunop \\&&|&
240240
\ishape\K{.}\vitestop \\ &&|&
241241
\ishape\K{.}\BITMASK \\ &&|&

document/core/text/instructions.rst

+1
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@ SIMD const instructions have a mandatory :ref:`shape <syntax-simd-shape>` descri
701701
.. math::
702702
\begin{array}{llclll}
703703
\phantom{\production{instruction}} & \phantom{\Tplaininstr_I} &\phantom{::=}& \phantom{averylonginstructionnameforsimdtext} && \phantom{simdhasreallylonginstructionnames} \\[-2ex] &&|&
704+
\text{i64x2.abs} &\Rightarrow& \I64X2.\VABS\\ &&|&
704705
\text{i64x2.neg} &\Rightarrow& \I64X2.\VNEG\\ &&|&
705706
\text{i64x2.all\_true} &\Rightarrow& \I64X2.\ALLTRUE\\ &&|&
706707
\text{i64x2.bitmask} &\Rightarrow& \I64X2.\BITMASK\\ &&|&

0 commit comments

Comments
 (0)