Skip to content

Commit 0ea5696

Browse files
authored
[spec] Add missing text format for f32x4 and f64x2 (WebAssembly#1722)
1 parent 724b3e7 commit 0ea5696

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

document/core/text/instructions.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,10 @@ Vector constant instructions have a mandatory :ref:`shape <syntax-vec-shape>` de
853853
\text{f32x4.abs} &\Rightarrow& \F32X4.\VABS\\ &&|&
854854
\text{f32x4.neg} &\Rightarrow& \F32X4.\VNEG\\ &&|&
855855
\text{f32x4.sqrt} &\Rightarrow& \F32X4.\VSQRT\\ &&|&
856+
\text{f32x4.ceil} &\Rightarrow& \F32X4.\VCEIL\\ &&|&
857+
\text{f32x4.floor} &\Rightarrow& \F32X4.\VFLOOR\\ &&|&
858+
\text{f32x4.trunc} &\Rightarrow& \F32X4.\VTRUNC\\ &&|&
859+
\text{f32x4.nearest} &\Rightarrow& \F32X4.\VNEAREST\\ &&|&
856860
\text{f32x4.add} &\Rightarrow& \F32X4.\VADD\\ &&|&
857861
\text{f32x4.sub} &\Rightarrow& \F32X4.\VSUB\\ &&|&
858862
\text{f32x4.mul} &\Rightarrow& \F32X4.\VMUL\\ &&|&
@@ -869,6 +873,10 @@ Vector constant instructions have a mandatory :ref:`shape <syntax-vec-shape>` de
869873
\text{f64x2.abs} &\Rightarrow& \F64X2.\VABS\\ &&|&
870874
\text{f64x2.neg} &\Rightarrow& \F64X2.\VNEG\\ &&|&
871875
\text{f64x2.sqrt} &\Rightarrow& \F64X2.\VSQRT\\ &&|&
876+
\text{f64x2.ceil} &\Rightarrow& \F64X2.\VCEIL\\ &&|&
877+
\text{f64x2.floor} &\Rightarrow& \F64X2.\VFLOOR\\ &&|&
878+
\text{f64x2.trunc} &\Rightarrow& \F64X2.\VTRUNC\\ &&|&
879+
\text{f64x2.nearest} &\Rightarrow& \F64X2.\VNEAREST\\ &&|&
872880
\text{f64x2.add} &\Rightarrow& \F64X2.\VADD\\ &&|&
873881
\text{f64x2.sub} &\Rightarrow& \F64X2.\VSUB\\ &&|&
874882
\text{f64x2.mul} &\Rightarrow& \F64X2.\VMUL\\ &&|&
@@ -913,7 +921,7 @@ Such a folded instruction can appear anywhere a regular instruction can.
913921
914922
.. math::
915923
\begin{array}{lllll}
916-
\production{instruction} &
924+
\production{instruction} &
917925
\text{(}~\Tplaininstr~~\Tfoldedinstr^\ast~\text{)}
918926
&\equiv\quad \Tfoldedinstr^\ast~~\Tplaininstr \\ &
919927
\text{(}~\text{block}~~\Tlabel~~\Tblocktype~~\Tinstr^\ast~\text{)}

0 commit comments

Comments
 (0)