https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117497
Bug ID: 117497
Summary: Wrong use (or ambiguity?) of the riscv_v selector
causes test failures
Product: gcc
Version: 14.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: xry111 at gcc dot gnu.org
Target Milestone: ---
riscv_v selector only checks if RVV is available with user-specified -march
options. But even if riscv_v is evaluated false,
check_vect_support_and_set_flags will still append a -march containing v. So
in a default configuration, the vect test cases will be compiled with RVV
enabled, but riscv_v is false.
However, some tests, for example pr88598-{1,2,3}.c and vect-gather-2.c,
anticipate riscv_v == false meaning RVV is not enabled at all, and then fail.