RISC-V: Suppress bogus warning for VLS types

This patch fixes over 100+ bogus FAILs due to experimental vector ABI warning.

gcc/ChangeLog:

	* config/riscv/riscv.cc (riscv_pass_in_vector_p): Only allow RVV type.
This commit is contained in:
Juzhe-Zhong 2023-09-08 16:20:27 +08:00 committed by Pan Li
parent f9cb357ae9
commit a0e042d61d

View file

@ -4414,7 +4414,7 @@ riscv_pass_in_vector_p (const_tree type)
{
static int warned = 0;
if (type && riscv_v_ext_mode_p (TYPE_MODE (type)) && !warned)
if (type && riscv_vector::lookup_vector_type_attribute (type) && !warned)
{
warning (OPT_Wpsabi,
"ABI for the vector type is currently in experimental stage and "