This repository was archived by the owner on May 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3736,10 +3736,10 @@ riscv_scalable_vector_type_p (const_tree type)
3736
3736
{
3737
3737
tree size = TYPE_SIZE (type);
3738
3738
if (size && TREE_CODE (size) == INTEGER_CST)
3739
- return true ;
3739
+ return false ;
3740
3740
3741
3741
/* For the data type like vint32m1_t, the size code is POLY_INT_CST. */
3742
- return false ;
3742
+ return true ;
3743
3743
}
3744
3744
3745
3745
static bool
@@ -3762,15 +3762,15 @@ riscv_arg_has_vector (const_tree type)
3762
3762
3763
3763
/* Ignore it if it's fixed length vector. */
3764
3764
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);
3766
3766
else
3767
3767
is_vector = riscv_arg_has_vector (field_type);
3768
3768
}
3769
3769
3770
3770
break ;
3771
3771
3772
3772
case VECTOR_TYPE:
3773
- is_vector = ! riscv_scalable_vector_type_p (type);
3773
+ is_vector = riscv_scalable_vector_type_p (type);
3774
3774
break ;
3775
3775
3776
3776
default :
@@ -3791,7 +3791,7 @@ riscv_pass_in_vector_p (const_tree type)
3791
3791
3792
3792
if (type && riscv_arg_has_vector (type) && !warned)
3793
3793
{
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 "
3795
3795
" experimental stage and may changes in the upcoming version of "
3796
3796
" GCC." );
3797
3797
warned = 1 ;
You can’t perform that action at this time.
0 commit comments