RISC-V: Enable TARGET_SFB_ALU for andes-45-series
Checks
| Context |
Check |
Description |
| rivoscibot/toolchain-ci-rivos-apply-patch |
success
|
Patch applied
|
| rivoscibot/toolchain-ci-rivos-lint |
success
|
Lint passed
|
| rivoscibot/toolchain-ci-rivos-build--newlib-rv64gcv-lp64d-multilib |
success
|
Build passed
|
| rivoscibot/toolchain-ci-rivos-build--linux-rv64gc_zba_zbb_zbc_zbs-lp64d-multilib |
success
|
Build passed
|
| rivoscibot/toolchain-ci-rivos-build--linux-rv64gcv-lp64d-multilib |
success
|
Build passed
|
| rivoscibot/toolchain-ci-rivos-test |
pending
|
Testing started
|
| linaro-tcwg-bot/tcwg_simplebootstrap_build--master-arm-bootstrap |
pending
|
Patch applied
|
| linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_simplebootstrap_build--master-aarch64-bootstrap |
fail
|
Patch failed to apply
|
Commit Message
Enable short forward branch (SFB) ALU support for the andes-45-series
tune, matching the existing sfb_alu scheduling reservation already
present in andes-45-series.md.
gcc/ChangeLog:
* config/riscv/riscv.h (TARGET_SFB_ALU): Add andes_45_series.
---
gcc/config/riscv/riscv.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
LGTM :)
Jim Lin <jim@andestech.com> 於 2026年7月8日週三 上午10:47寫道:
>
> Enable short forward branch (SFB) ALU support for the andes-45-series
> tune, matching the existing sfb_alu scheduling reservation already
> present in andes-45-series.md.
>
> gcc/ChangeLog:
>
> * config/riscv/riscv.h (TARGET_SFB_ALU): Add andes_45_series.
> ---
> gcc/config/riscv/riscv.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/gcc/config/riscv/riscv.h b/gcc/config/riscv/riscv.h
> index d72c06ec37f..7eb85d654a7 100644
> --- a/gcc/config/riscv/riscv.h
> +++ b/gcc/config/riscv/riscv.h
> @@ -974,7 +974,8 @@ extern enum riscv_cc get_riscv_cc (const rtx use);
> #define TARGET_SFB_ALU \
> ((riscv_microarchitecture == sifive_7) \
> || (riscv_microarchitecture == sifive_p400) \
> - || (riscv_microarchitecture == sifive_p600))
> + || (riscv_microarchitecture == sifive_p600) \
> + || (riscv_microarchitecture == andes_45_series))
>
> /* True if the target supports misaligned vector loads and stores. */
> #define TARGET_VECTOR_MISALIGN_SUPPORTED \
> --
> 2.52.0
>
On 7/7/2026 8:59 PM, Kito Cheng wrote:
> LGTM :)
Agreed and pushed.
However, I'm going to have to pause integration of further patches from
Jim until he either starts including a DCO signoff in the patch itself,
adds himself to the DCO section of the MAINTAINERS file or gets an
past/future assignment in place with the FSF. While none of the
patches individually are significant from a copyright standpoint, the
aggregate of the patches probably does push us into the significant from
a copyright standpoint.
Jeff
> However, I'm going to have to pause integration of further patches from
> Jim until he either starts including a DCO signoff in the patch itself,
> adds himself to the DCO section of the MAINTAINERS file or gets an
> past/future assignment in place with the FSF. While none of the
> patches individually are significant from a copyright standpoint, the
> aggregate of the patches probably does push us into the significant from
> a copyright standpoint.
IIRC andestech has signed company-wise copyright assignment for GNU toolchains?
He still needs DCO signoff even if they have that?
>
> Jeff
>
Follow up: I checked fencepost.gnu.org again and I saw they have
signed for GLIBC GDB GCC BINUTILS since 2009 :)
Kito Cheng <kito.cheng@gmail.com> 於 2026年7月9日週四 上午10:56寫道:
>
> > However, I'm going to have to pause integration of further patches from
> > Jim until he either starts including a DCO signoff in the patch itself,
> > adds himself to the DCO section of the MAINTAINERS file or gets an
> > past/future assignment in place with the FSF. While none of the
> > patches individually are significant from a copyright standpoint, the
> > aggregate of the patches probably does push us into the significant from
> > a copyright standpoint.
>
> IIRC andestech has signed company-wise copyright assignment for GNU toolchains?
> He still needs DCO signoff even if they have that?
>
> >
> > Jeff
> >
On 7/8/2026 9:10 PM, Kito Cheng wrote:
> Follow up: I checked fencepost.gnu.org again and I saw they have
> signed for GLIBC GDB GCC BINUTILS since 2009 :)
Oh, good. Thanks. Pause lifted :-)
jeff
@@ -974,7 +974,8 @@ extern enum riscv_cc get_riscv_cc (const rtx use);
#define TARGET_SFB_ALU \
((riscv_microarchitecture == sifive_7) \
|| (riscv_microarchitecture == sifive_p400) \
- || (riscv_microarchitecture == sifive_p600))
+ || (riscv_microarchitecture == sifive_p600) \
+ || (riscv_microarchitecture == andes_45_series))
/* True if the target supports misaligned vector loads and stores. */
#define TARGET_VECTOR_MISALIGN_SUPPORTED \