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

Commit dd16427

Browse files
committed
[spectext] Add i8x16.popcnt to syntax
It maps nicely to the existing vunop group, so the validation and execution semantics are taken care of. Drive-by fixes: - was using NEG instead of VNEG for SIMD negation instruction - vunop includes neg twice, since viunop already includes neg.
1 parent a2091ba commit dd16427

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

document/core/syntax/instructions.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ SIMD instructions provide basic operations over :ref:`values <syntax-value>` of
234234
\K{i8x16.}\viunop ~|~
235235
\K{i16x8.}\viunop ~|~
236236
\K{i32x4.}\viunop \\&&|&
237-
\K{i64x2.}\NEG \\&&|&
237+
\K{i8x16.}\VPOPCNT \\&&|&
238+
\K{i64x2.}\VNEG \\&&|&
238239
\fshape\K{.}\vfunop \\&&|&
239240
\ishape\K{.}\vitestop \\ &&|&
240241
\ishape\K{.}\BITMASK \\ &&|&
@@ -380,7 +381,7 @@ Occasionally, it is convenient to group operators together according to the foll
380381
\production{unary operator} & \vunop &::=&
381382
\viunop ~|~
382383
\vfunop ~|~
383-
\VNEG \\
384+
\VPOPCNT \\
384385
\production{binary operator} & \vbinop &::=&
385386
\vibinop ~|~ \vfbinop \\&&|&
386387
\virelop ~|~ \vfrelop \\&&|&

document/core/util/macros.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@
407407
.. |VGE| mathdef:: \xref{syntax/instructions}{syntax-instr-simd}{\K{ge}}
408408
.. |VABS| mathdef:: \xref{syntax/instructions}{syntax-instr-simd}{\K{abs}}
409409
.. |VNEG| mathdef:: \xref{syntax/instructions}{syntax-instr-simd}{\K{neg}}
410+
.. |VPOPCNT| mathdef:: \xref{syntax/instructions}{syntax-instr-simd}{\K{popcnt}}
410411
.. |ANYTRUE| mathdef:: \xref{syntax/instructions}{syntax-instr-simd}{\K{any\_true}}
411412
.. |ALLTRUE| mathdef:: \xref{syntax/instructions}{syntax-instr-simd}{\K{all\_true}}
412413
.. |BITMASK| mathdef:: \xref{syntax/instructions}{syntax-instr-simd}{\K{bitmask}}

0 commit comments

Comments
 (0)