Skip to content

Commit b6dc846

Browse files
RISC-V: Fix format issue for trailing operator [NFC]
This patch would like to fix below format issue of trailing operator. === ERROR type #1: trailing operator (4 error(s)) === gcc/config/riscv/riscv-vector-builtins.cc:4641:39: if ((exts & RVV_REQUIRE_ELEN_FP_16) && gcc/config/riscv/riscv-vector-builtins.cc:4651:39: if ((exts & RVV_REQUIRE_ELEN_FP_32) && gcc/config/riscv/riscv-vector-builtins.cc:4661:39: if ((exts & RVV_REQUIRE_ELEN_FP_64) && gcc/config/riscv/riscv-vector-builtins.cc:4670:36: if ((exts & RVV_REQUIRE_ELEN_64) && Passed the ./contrib/check_GNU_style.sh for this patch, and double checked there is no other format issue of the original patch. Committed as format change. gcc/ChangeLog: * config/riscv/riscv-vector-builtins.cc (validate_instance_type_required_extensions): Remove the operator from the trailing and put it to new line. Signed-off-by: Pan Li <[email protected]>
1 parent dd594aa commit b6dc846

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: gcc/config/riscv/riscv-vector-builtins.cc

+8-8
Original file line numberDiff line numberDiff line change
@@ -4638,8 +4638,8 @@ validate_instance_type_required_extensions (const rvv_type_info type,
46384638
{
46394639
uint64_t exts = type.required_extensions;
46404640

4641-
if ((exts & RVV_REQUIRE_ELEN_FP_16) &&
4642-
!TARGET_VECTOR_ELEN_FP_16_P (riscv_vector_elen_flags))
4641+
if ((exts & RVV_REQUIRE_ELEN_FP_16)
4642+
&& !TARGET_VECTOR_ELEN_FP_16_P (riscv_vector_elen_flags))
46434643
{
46444644
error_at (EXPR_LOCATION (exp),
46454645
"built-in function %qE requires the "
@@ -4648,8 +4648,8 @@ validate_instance_type_required_extensions (const rvv_type_info type,
46484648
return false;
46494649
}
46504650

4651-
if ((exts & RVV_REQUIRE_ELEN_FP_32) &&
4652-
!TARGET_VECTOR_ELEN_FP_32_P (riscv_vector_elen_flags))
4651+
if ((exts & RVV_REQUIRE_ELEN_FP_32)
4652+
&& !TARGET_VECTOR_ELEN_FP_32_P (riscv_vector_elen_flags))
46534653
{
46544654
error_at (EXPR_LOCATION (exp),
46554655
"built-in function %qE requires the "
@@ -4658,17 +4658,17 @@ validate_instance_type_required_extensions (const rvv_type_info type,
46584658
return false;
46594659
}
46604660

4661-
if ((exts & RVV_REQUIRE_ELEN_FP_64) &&
4662-
!TARGET_VECTOR_ELEN_FP_64_P (riscv_vector_elen_flags))
4661+
if ((exts & RVV_REQUIRE_ELEN_FP_64)
4662+
&& !TARGET_VECTOR_ELEN_FP_64_P (riscv_vector_elen_flags))
46634663
{
46644664
error_at (EXPR_LOCATION (exp),
46654665
"built-in function %qE requires the zve64d or v ISA extension",
46664666
exp);
46674667
return false;
46684668
}
46694669

4670-
if ((exts & RVV_REQUIRE_ELEN_64) &&
4671-
!TARGET_VECTOR_ELEN_64_P (riscv_vector_elen_flags))
4670+
if ((exts & RVV_REQUIRE_ELEN_64)
4671+
&& !TARGET_VECTOR_ELEN_64_P (riscv_vector_elen_flags))
46724672
{
46734673
error_at (EXPR_LOCATION (exp),
46744674
"built-in function %qE requires the "

0 commit comments

Comments
 (0)