Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 33484c5

Browse files
author
Yanzhang Wang
committed
fix: address comments.
1 parent cb6ae98 commit 33484c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gcc/config/riscv/riscv.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3736,10 +3736,10 @@ riscv_scalable_vector_type_p (const_tree type)
37363736
{
37373737
tree size = TYPE_SIZE (type);
37383738
if (size && TREE_CODE (size) == INTEGER_CST)
3739-
return true;
3739+
return false;
37403740

37413741
/* For the data type like vint32m1_t, the size code is POLY_INT_CST. */
3742-
return false;
3742+
return true;
37433743
}
37443744

37453745
static bool
@@ -3762,15 +3762,15 @@ riscv_arg_has_vector (const_tree type)
37623762

37633763
/* Ignore it if it's fixed length vector. */
37643764
if (VECTOR_TYPE_P (field_type))
3765-
is_vector = !riscv_scalable_vector_type_p (field_type);
3765+
is_vector = riscv_scalable_vector_type_p (field_type);
37663766
else
37673767
is_vector = riscv_arg_has_vector (field_type);
37683768
}
37693769

37703770
break;
37713771

37723772
case VECTOR_TYPE:
3773-
is_vector = !riscv_scalable_vector_type_p (type);
3773+
is_vector = riscv_scalable_vector_type_p (type);
37743774
break;
37753775

37763776
default:
@@ -3791,7 +3791,7 @@ riscv_pass_in_vector_p (const_tree type)
37913791

37923792
if (type && riscv_arg_has_vector (type) && !warned)
37933793
{
3794-
warning (OPT_Wpsabi, "ABI for the vector type is currently in "
3794+
warning (OPT_Wpsabi, "ABI for the scalable vector type is currently in "
37953795
"experimental stage and may changes in the upcoming version of "
37963796
"GCC.");
37973797
warned = 1;

0 commit comments

Comments
 (0)