@@ -18644,7 +18644,7 @@ operation.
1864418644Semantics:
1864518645""""""""""
1864618646
18647- The '``llvm.vp.fadd``' intrinsic performs floating-point addition (:ref:`add <i_fadd>`)
18647+ The '``llvm.vp.fadd``' intrinsic performs floating-point addition (:ref:`fadd <i_fadd>`)
1864818648of the first and second vector operand on each enabled lane. The result on
1864918649disabled lanes is undefined. The operation is performed in the default
1865018650floating-point environment.
@@ -18693,7 +18693,7 @@ operation.
1869318693Semantics:
1869418694""""""""""
1869518695
18696- The '``llvm.vp.fsub``' intrinsic performs floating-point subtraction (:ref:`add <i_fsub>`)
18696+ The '``llvm.vp.fsub``' intrinsic performs floating-point subtraction (:ref:`fsub <i_fsub>`)
1869718697of the first and second vector operand on each enabled lane. The result on
1869818698disabled lanes is undefined. The operation is performed in the default
1869918699floating-point environment.
@@ -18742,7 +18742,7 @@ operation.
1874218742Semantics:
1874318743""""""""""
1874418744
18745- The '``llvm.vp.fmul``' intrinsic performs floating-point multiplication (:ref:`add <i_fmul>`)
18745+ The '``llvm.vp.fmul``' intrinsic performs floating-point multiplication (:ref:`fmul <i_fmul>`)
1874618746of the first and second vector operand on each enabled lane. The result on
1874718747disabled lanes is undefined. The operation is performed in the default
1874818748floating-point environment.
@@ -18791,7 +18791,7 @@ operation.
1879118791Semantics:
1879218792""""""""""
1879318793
18794- The '``llvm.vp.fdiv``' intrinsic performs floating-point division (:ref:`add <i_fdiv>`)
18794+ The '``llvm.vp.fdiv``' intrinsic performs floating-point division (:ref:`fdiv <i_fdiv>`)
1879518795of the first and second vector operand on each enabled lane. The result on
1879618796disabled lanes is undefined. The operation is performed in the default
1879718797floating-point environment.
@@ -18840,7 +18840,7 @@ operation.
1884018840Semantics:
1884118841""""""""""
1884218842
18843- The '``llvm.vp.frem``' intrinsic performs floating-point remainder (:ref:`add <i_frem>`)
18843+ The '``llvm.vp.frem``' intrinsic performs floating-point remainder (:ref:`frem <i_frem>`)
1884418844of the first and second vector operand on each enabled lane. The result on
1884518845disabled lanes is undefined. The operation is performed in the default
1884618846floating-point environment.
@@ -18857,6 +18857,54 @@ Examples:
1885718857 %also.r = select <4 x i1> %mask, <4 x float> %t, <4 x float> undef
1885818858
1885918859
18860+ .. _int_vp_fneg:
18861+
18862+ '``llvm.vp.fneg.*``' Intrinsics
18863+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18864+
18865+ Syntax:
18866+ """""""
18867+ This is an overloaded intrinsic.
18868+
18869+ ::
18870+
18871+ declare <16 x float> @llvm.vp.fneg.v16f32 (<16 x float> <op>, <16 x i1> <mask>, i32 <vector_length>)
18872+ declare <vscale x 4 x float> @llvm.vp.fneg.nxv4f32 (<vscale x 4 x float> <op>, <vscale x 4 x i1> <mask>, i32 <vector_length>)
18873+ declare <256 x double> @llvm.vp.fneg.v256f64 (<256 x double> <op>, <256 x i1> <mask>, i32 <vector_length>)
18874+
18875+ Overview:
18876+ """""""""
18877+
18878+ Predicated floating-point negation of a vector of floating-point values.
18879+
18880+
18881+ Arguments:
18882+ """"""""""
18883+
18884+ The first operand and the result have the same vector of floating-point type.
18885+ The second operand is the vector mask and has the same number of elements as the
18886+ result vector type. The third operand is the explicit vector length of the
18887+ operation.
18888+
18889+ Semantics:
18890+ """"""""""
18891+
18892+ The '``llvm.vp.fneg``' intrinsic performs floating-point negation (:ref:`fneg <i_fneg>`)
18893+ of the first vector operand on each enabled lane. The result on disabled lanes
18894+ is undefined.
18895+
18896+ Examples:
18897+ """""""""
18898+
18899+ .. code-block:: llvm
18900+
18901+ %r = call <4 x float> @llvm.vp.fneg.v4f32(<4 x float> %a, <4 x i1> %mask, i32 %evl)
18902+ ;; For all lanes below %evl, %r is lane-wise equivalent to %also.r
18903+
18904+ %t = fneg <4 x float> %a
18905+ %also.r = select <4 x i1> %mask, <4 x float> %t, <4 x float> undef
18906+
18907+
1886018908.. _int_vp_fma:
1886118909
1886218910'``llvm.vp.fma.*``' Intrinsics
0 commit comments