[PATCH] RISC-V: Update Profiles string in RV23.

Nelson Chu nelson@rivosinc.com
Tue Jun 24 11:40:47 GMT 2025


Okay, committed after passing rv32/64-elf/linux binutils testsuites.

Thanks
Nelson

On Tue, Jun 24, 2025 at 7:10 PM Jiawei <jiawei@iscas.ac.cn> wrote:

> Update the Profiles string in RV23 to include the extensions 'b' and
> 'supm'.
>
> bfd/ChangeLog:
>
>         * elfxx-riscv.c: Update Profiles string in RV23.
>
> gas/ChangeLog:
>
>         * testsuite/gas/riscv/attribute-19.d: Update test string.
>         * testsuite/gas/riscv/attribute-20.d: Ditto.
>
> ---
>  bfd/elfxx-riscv.c                      | 8 ++++----
>  gas/testsuite/gas/riscv/attribute-19.d | 2 +-
>  gas/testsuite/gas/riscv/attribute-20.d | 2 +-
>  3 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
> index 936adcd7d6d..360bd262099 100644
> --- a/bfd/elfxx-riscv.c
> +++ b/bfd/elfxx-riscv.c
> @@ -1342,18 +1342,18 @@ static struct riscv_profiles
> riscv_profiles_table[] =
>    /* RVA23 contains all mandatory base ISA for RVA22U64 and the new
> extension
>       'v,zihintntl,zvfhmin,zvbb,zvkt,zicond,zimop,zcmop,zfa,zawrs' as
> mandatory
>       extensions.  */
> -  {"rva23u64", "rv64imafdcv_zicsr_zicntr_zihpm_ziccif_ziccrse_ziccamoa"
> +  {"rva23u64", "rv64imafdcbv_zicsr_zicntr_zihpm_ziccif_ziccrse_ziccamoa"
>     "_zicclsm_zic64b_za64rs_zihintpause_zba_zbb_zbs_zicbom_zicbop"
>     "_zicboz_zfhmin_zkt_zvfhmin_zvbb_zvkt_zihintntl_zicond_zimop_zcmop_zcb"
> -   "_zfa_zawrs"},
> +   "_zfa_zawrs_supm"},
>
>    /* RVB23 contains all mandatory base ISA for RVA22U64 and the new
> extension
>       'zihintntl,zicond,zimop,zcmop,zfa,zawrs' as mandatory
>       extensions.  */
> -  {"rvb23u64", "rv64imafdc_zicsr_zicntr_zihpm_ziccif_ziccrse_ziccamoa"
> +  {"rvb23u64", "rv64imafdcb_zicsr_zicntr_zihpm_ziccif_ziccrse_ziccamoa"
>     "_zicclsm_zic64b_za64rs_zihintpause_zba_zbb_zbs_zicbom_zicbop"
>     "_zicboz_zfhmin_zkt_zihintntl_zicond_zimop_zcmop_zcb"
> -   "_zfa_zawrs"},
> +   "_zfa_zawrs_supm"},
>
>    /* Currently we do not define S/M mode Profiles.  */
>
> diff --git a/gas/testsuite/gas/riscv/attribute-19.d
> b/gas/testsuite/gas/riscv/attribute-19.d
> index 1cd15d5b109..d73e3f00ed8 100644
> --- a/gas/testsuite/gas/riscv/attribute-19.d
> +++ b/gas/testsuite/gas/riscv/attribute-19.d
> @@ -3,4 +3,4 @@
>  #source: empty.s
>  Attribute Section: riscv
>  File Attributes
> -  Tag_RISCV_arch:
> "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_v1p0_zic64b1p0_zicbom1p0_zicbop1p0_zicboz1p0_ziccamoa1p0_ziccif1p0_zicclsm1p0_ziccrse1p0_zicntr2p0_zicond1p0_zicsr2p0_zihintntl1p0_zihintpause2p0_zihpm2p0_zimop1p0_zmmul1p0_za64rs1p0_zaamo1p0_zalrsc1p0_zawrs1p0_zfa1p0_zfhmin1p0_zca1p0_zcb1p0_zcmop1p0_zba1p0_zbb1p0_zbs1p0_zkt1p0_zvbb1p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvfhmin1p0_zvkb1p0_zvkt1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0"
> +  Tag_RISCV_arch:
> "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_b1p0_v1p0_zic64b1p0_zicbom1p0_zicbop1p0_zicboz1p0_ziccamoa1p0_ziccif1p0_zicclsm1p0_ziccrse1p0_zicntr2p0_zicond1p0_zicsr2p0_zihintntl1p0_zihintpause2p0_zihpm2p0_zimop1p0_zmmul1p0_za64rs1p0_zaamo1p0_zalrsc1p0_zawrs1p0_zfa1p0_zfhmin1p0_zca1p0_zcb1p0_zcmop1p0_zba1p0_zbb1p0_zbs1p0_zkt1p0_zvbb1p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvfhmin1p0_zvkb1p0_zvkt1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0_supm1p0"
> diff --git a/gas/testsuite/gas/riscv/attribute-20.d
> b/gas/testsuite/gas/riscv/attribute-20.d
> index e8fb7678a1a..22bcc13f207 100644
> --- a/gas/testsuite/gas/riscv/attribute-20.d
> +++ b/gas/testsuite/gas/riscv/attribute-20.d
> @@ -3,4 +3,4 @@
>  #source: empty.s
>  Attribute Section: riscv
>  File Attributes
> -  Tag_RISCV_arch:
> "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zic64b1p0_zicbom1p0_zicbop1p0_zicboz1p0_ziccamoa1p0_ziccif1p0_zicclsm1p0_ziccrse1p0_zicntr2p0_zicond1p0_zicsr2p0_zihintntl1p0_zihintpause2p0_zihpm2p0_zimop1p0_zmmul1p0_za64rs1p0_zaamo1p0_zalrsc1p0_zawrs1p0_zfa1p0_zfhmin1p0_zca1p0_zcb1p0_zcmop1p0_zba1p0_zbb1p0_zbs1p0_zkt1p0"
> +  Tag_RISCV_arch:
> "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_b1p0_zic64b1p0_zicbom1p0_zicbop1p0_zicboz1p0_ziccamoa1p0_ziccif1p0_zicclsm1p0_ziccrse1p0_zicntr2p0_zicond1p0_zicsr2p0_zihintntl1p0_zihintpause2p0_zihpm2p0_zimop1p0_zmmul1p0_za64rs1p0_zaamo1p0_zalrsc1p0_zawrs1p0_zfa1p0_zfhmin1p0_zca1p0_zcb1p0_zcmop1p0_zba1p0_zbb1p0_zbs1p0_zkt1p0_supm1p0"
> --
> 2.43.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250624/f5b79f2e/attachment.htm>


More information about the Binutils mailing list