Skip to content

Commit 39bd4ba

Browse files
committed
__riscv_v_intrinsic should always define if compiler support RVV intrinsics.
Fix #376
1 parent 3d81513 commit 39bd4ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/rvv-intrinsic-spec.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ This document uses the term "RVV" as an abbreviation for the RISC-V "V" extensio
88

99
The `__riscv_v_intrinsic` macro is the C macro to test the compiler's support for the RISC-V "V" extension intrinsics.
1010

11+
This macro should be defined even if the vector extension is not enabled.
12+
1113
The value of the test macro is defined as its version, which is computed using the following formula. The formula is identical to what is defined in the RISC-V C API specification cite:[riscv-c-api].
1214

1315
----

0 commit comments

Comments
 (0)