From 73151cde47571f59cb330564ed9c7c5dcce54e9d Mon Sep 17 00:00:00 2001 From: Kito Cheng Date: Tue, 19 Nov 2024 10:25:09 +0800 Subject: [PATCH] `__riscv_v_intrinsic` should always define if compiler support RVV intrinsics. Fix #376 --- doc/rvv-intrinsic-spec.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/rvv-intrinsic-spec.adoc b/doc/rvv-intrinsic-spec.adoc index e3dbed859..5f9260805 100644 --- a/doc/rvv-intrinsic-spec.adoc +++ b/doc/rvv-intrinsic-spec.adoc @@ -8,6 +8,8 @@ This document uses the term "RVV" as an abbreviation for the RISC-V "V" extensio The `__riscv_v_intrinsic` macro is the C macro to test the compiler's support for the RISC-V "V" extension intrinsics. +This macro should be defined even if the vector extension is not enabled. + 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]. ----