]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Docs: Add doc for RISC-V vector intrinsics
authorKito Cheng <kito.cheng@sifive.com>
Tue, 18 Apr 2023 10:07:06 +0000 (18:07 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 18 Apr 2023 15:37:50 +0000 (23:37 +0800)
Document which version of RISC-V vector intrinsics has implemented in
GCC.

gcc/ChangeLog:

* doc/extend.texi (Target Builtins): Add RISC-V Vector
Intrinsics.
(RISC-V Vector Intrinsics): Document GCC implemented which
version of RISC-V vector intrinsics and its reference.

gcc/doc/extend.texi

index 69c5ade0d62a152442ac204709dc55e4378279fc..84b44cb991684bf2a6471d228c698b4cf6efc44f 100644 (file)
@@ -14689,6 +14689,7 @@ instructions, but allow the compiler to schedule those calls.
 * PowerPC Matrix-Multiply Assist Built-in Functions::
 * PRU Built-in Functions::
 * RISC-V Built-in Functions::
+* RISC-V Vector Intrinsics::
 * RX Built-in Functions::
 * S/390 System z Built-in Functions::
 * SH Built-in Functions::
@@ -21248,6 +21249,14 @@ Xgnuzihintpausestate extension, which redefines the @code{pause} instruction to
 change architectural state.
 @enddefbuiltin
 
+@node RISC-V Vector Intrinsics
+@subsection RISC-V Vector Intrinsics
+
+GCC supports vector intrinsics as specified in version 0.11 of the RISC-V
+vector intrinsic specification, which is available at the following link:
+@uref{https://github.com/riscv-non-isa/rvv-intrinsic-doc/tree/v0.11.x}.
+All of these functions are declared in the include file @file{riscv_vector.h}.
+
 @node RX Built-in Functions
 @subsection RX Built-in Functions
 GCC supports some of the RX instructions which cannot be expressed in