Re: [PATCH] RISC-V: Add svbare extension.

2025-06-02 Thread Dongyan Chen
I add a ChangeLog and update testname in https://gcc.gnu.org/pipermail/gcc-patches/2025-June/685401.html Thanks Dongyan Chen 在 2025/6/3 3:34, Jeff Law 写道: On 5/29/25 7:27 AM, Dongyan Chen wrote: This patch support svbare extension, which is an extension in RVA23 profile. To enable GCC to

Re: [PATCH v2] RISC-V: Add svbare extension.

2025-06-02 Thread Dongyan Chen
Okay, thanks, I get that. Dongyan Chen 在 2025/6/3 9:34, Kito Cheng 写道: LGTM, and will commit once CI happy, BTW, next time you could name the testcase into arch-.c e.g. arch-svbare.c, that could prevent potential filename conflict. :)

[PATCH v2] RISC-V: Add svbare extension.

2025-06-02 Thread Dongyan Chen
This patch support svbare extension, which is an extension in RVA23 profile. To enable GCC to recognize and process svbare extension correctly at compile time. gcc/ChangeLog: * config/riscv/riscv-ext.def: New extension defs. * config/riscv/riscv-ext.opt: Ditto. * doc/risc

[PATCH] RISC-V: Add svbare extension.

2025-05-29 Thread Dongyan Chen
This patch support svbare extension, which is an extension in RVA23 profile. To enable GCC to recognize and process svbare extension correctly at compile time. --- gcc/config/riscv/riscv-ext.def | 13 + gcc/config/riscv/riscv-ext.opt | 2 ++ gcc/doc/riscv-ext.texi

[PATCH] RISC-V: Imply zicsr for svade and svadu extensions.

2025-05-29 Thread Dongyan Chen
This patch implies zicsr for svade and svadu extensions. According to the riscv-privileged spec, the svade and svadu extensions are privileged instructions, so they should imply zicsr. gcc/ChangeLog: * config/riscv/riscv-ext.def: Imply zicsr. --- gcc/config/riscv/riscv-ext.def | 4 ++--

[PATCH] RISC-V: Add smcntrpmf extension.

2025-05-29 Thread Dongyan Chen
This patch support smcntrpmf extension[1]. To enable GCC to recognize and process smcntrpmf extension correctly at compile time. [1]https://github.com/riscvarchive/riscv-smcntrpmf gcc/ChangeLog: * config/riscv/riscv-ext.def: New extension defs. * config/riscv/riscv-ext.opt: Ditt

Re: [PATCH] testsuite: RISC-V: Update the cset-sext-sfb/zba-slliuw test optimization level.

2025-05-21 Thread Dongyan Chen
Thanks. I will pay attention to this. Dongyan Chen 在 2025/5/22 11:49, Jeff Law 写道: On 5/21/25 9:16 PM, Dongyan Chen wrote: Failed testcases occurred in the regression test of gcc: cset-sext-sfb.c failed the -Oz test, and zba-slliuw.c failed the -Og test. This patch solves the problem by

[PATCH] testsuite: RISC-V: Update the cset-sext-sfb/zba-slliuw test optimization level.

2025-05-21 Thread Dongyan Chen
Failed testcases occurred in the regression test of gcc: cset-sext-sfb.c failed the -Oz test, and zba-slliuw.c failed the -Og test. This patch solves the problem by skipping the optimization. gcc/testsuite/ChangeLog: * gcc.target/riscv/cset-sext-sfb.c: Skip for -Oz. * gcc.target/r

Re: [PATCH] RISC-V: Fix the warning of temporary object dangling references.

2025-05-19 Thread Dongyan Chen
I fix the code by changing the argument type of get_riscv_ext_info to `const char *` and the link is: https://gcc.gnu.org/pipermail/gcc-patches/2025-May/684057.html 在 2025/5/16 10:35, Kito Cheng 写道: Hm, it really doesn't make too much sense to get that warning, but I can reproduce that whe

[PATCH v2] RISC-V: Fix the warning of temporary object dangling references.

2025-05-19 Thread Dongyan Chen
During the GCC compilation, some warnings about temporary object dangling references emerged. They appeared in these code lines in riscv-common.cc: const riscv_ext_info_t &implied_ext_info, const riscv_ext_info_t &ext_info = get_riscv_ext_info (ext) and auto &ext_info = get_riscv_ext_info (search

[PATCH] RISC-V: Fix the warning of temporary object dangling references.

2025-05-15 Thread Dongyan Chen
During the GCC compilation, some warnings about temporary object dangling references emerged. They appeared in these code lines in riscv-common.cc: const riscv_ext_info_t &implied_ext_info, const riscv_ext_info_t &ext_info = get_riscv_ext_info (ext) and auto &ext_info = get_riscv_ext_info (search

Re: [PATCH v2] RISC-V: Support for zilsd and zclsd extensions.

2025-05-12 Thread Dongyan Chen
Okay, thanks! 在 2025/5/12 21:32, Kito Cheng 写道: This patch is somewhat corrupt...but anyway, fixed and pushed to trunk

[PATCH v5] RISC-V: Minimal support for ssnpm, smnpm and smmpm extensions.

2025-05-12 Thread Dongyan Chen
This patch support ssnpm, smnpm, smmpm, sspm and supm extensions[1]. To enable GCC to recognize and process ssnpm, smnpm, smmpm, sspm and supm extensions correctly at compile time. [1]https://github.com/riscv/riscv-j-extension/blob/master/zjpm/instructions.adoc Changes for v5: - Fix the testsuit

[PATCH v4] RISC-V: Minimal support for ssnpm, smnpm and smmpm extensions.

2025-05-12 Thread Dongyan Chen
This patch support ssnpm, smnpm, smmpm, sspm and supm extensions[1]. To enable GCC to recognize and process ssnpm, smnpm, smmpm, sspm and supm extensions correctly at compile time. [1]https://github.com/riscv/riscv-j-extension/blob/master/zjpm/instructions.adoc Changes for v4: - Fix the code bas

Re: [PATCH v2] RISC-V: Support for zilsd and zclsd extensions.

2025-05-07 Thread Dongyan Chen
get *-*-* } 0 } */ +/* { dg-error "'-march=rv64gc_zilsd_zclsd': zclsd extension supports in rv32 only" "" { target *-*-* } 0 } */ +/* { dg-error "'-march=rv64imafdc_zicsr_zifencei_zilsd_zmmul_zaamo_zalrsc_zca_zcd_zclsd': zilsd extension supports in

Re: [PATCH] RISC-V: Minimal support for sdtrig and ssstrict extensions.

2025-05-07 Thread Dongyan Chen
Okay, thanks. Dongyan Chen 在 2025/5/7 7:11, Jeff Law 写道: On 4/18/25 2:47 AM, Dongyan Chen wrote: This patch support sdtrig and ssstrict extensions[1]. To enable GCC to recognize and process sdtrig and ssstrict extensions correctly at compile time. [1]https://github.com/riscv/riscv

Re: [PATCH] RISC-V: Minimal support for ssnpm, smnpm and smmpm extensions.

2025-04-30 Thread Dongyan Chen
The patch has been modified as follows: This patch support ssnpm, smnpm, smmpm, sspm and supm extensions[1]. To enable GCC to recognize and process ssnpm, smnpm, smmpm, sspm and supm extensions correctly at compile time. [1]https://github.com/riscv/riscv-j-extension/blob/master/zjpm/instructio

[PATCH] RISC-V: Minimal support for sdtrig and ssstrict extensions.

2025-04-18 Thread Dongyan Chen
This patch support sdtrig and ssstrict extensions[1]. To enable GCC to recognize and process sdtrig and ssstrict extensions correctly at compile time. [1] https://github.com/riscv/riscv-profiles/blob/main/src/rva23-profile.adoc gcc/ChangeLog: * common/config/riscv/riscv-common.cc: New e

[PATCH] RISC-V: Minimal support for zama16b extension.

2025-04-18 Thread Dongyan Chen
This patch support zama16b extension[1]. To enable GCC to recognize and process zama16b extension correctly at compile time. [1] https://github.com/riscv/riscv-profiles/blob/main/src/rva23-profile.adoc gcc/ChangeLog: * common/config/riscv/riscv-common.cc: New extension. * config

[PATCH] RISC-V: Add zvfbfa and zvfofp8min intrinsic.

2025-04-14 Thread Dongyan Chen
This patch add zvfbfa and zvfofp8min intrinsic[1]. To enable GCC to recognize and process zvfbfa and zvfofp8min extensions correctly at compile time. [1]https://github.com/aswaterman/riscv-misc/blob/e515758c24504cf3c16145bc763a76c59425ed1b/isa/zvfbfa.adoc gcc/ChangeLog: * common/config/

[PATCH v2] RISC-V: Support for zilsd and zclsd extensions.

2025-04-05 Thread Dongyan Chen
This patch support zilsd and zclsd[1] extensions. To enable GCC to recognize and process zilsd and zclsd extension correctly at compile time. [1] https://github.com/riscv/riscv-zilsd Changes for v2: - Remove the addition of zilsd and zclsd extension in gcc/common/config/riscv/riscv-ext-bitmask.

[PATCH v2] ISC-V: Support for zilsd and zclsd extensions.

2025-03-17 Thread Dongyan Chen
This patch support zilsd and zclsd[1] extensions. To enable GCC to recognize and process zilsd and zclsd extension correctly at compile time. [1] https://github.com/riscv/riscv-zilsd Changes for v2: - Remove the addition of zilsd extension in gcc/common/config/riscv/riscv-ext-bitmask.def - Fix

[PATCH] RISC-V: Minimal support for ssnpm, smnpm and smmpm extensions.

2025-03-17 Thread Dongyan Chen
This patch support ssnpm, smnpm and smmpm extensions[1]. To enable GCC to recognize and process ssnpm, smnpm and smmpm extensions correctly at compile time. [1] https://github.com/riscv/riscv-j-extension/blob/master/zjpm/instructions.adoc gcc/ChangeLog: * common/config/riscv/riscv-comm

[PATCH] RISC-V: Minimal support for Qualcomm uC Xqccmp extension.

2025-02-20 Thread Dongyan Chen
This patch support Qualcomm uC Xqccmp extension[1]. To enable GCC to recognize and process xqccmp extension correctly at compile time. [1]https://github.com/quic/riscv-unified-db/releases/tag/Xqccmp_extension-0.1.0 gcc/ChangeLog: * common/config/riscv/riscv-common.cc: New extension.

[PATCH] RISC-V: Support for zilsd and zclsd extensions.

2024-12-16 Thread Dongyan Chen
This patch support zilsd and zclsd[1] extensions. To enable GCC to recognize and process zilsd and zclsd extension correctly at compile time. [1] https://github.com/riscv/riscv-zilsd gcc/ChangeLog: * common/config/riscv/riscv-common.cc (riscv_subset_list::check_conflict_ext): New exten

[PATCH v2] RISC-V: Minimal support for ssdbltrp and smdbltrp extension.

2024-11-28 Thread Dongyan Chen
This patch support ssdbltrp[1] and smdbltrp[2] extension. To enable GCC to recognize and process ssdbltrp and smdbltrp extension correctly at compile time. [1] https://github.com/riscv/riscv-isa-manual/blob/main/src/ssdbltrp.adoc [2] https://github.com/riscv/riscv-isa-manual/blob/main/src/smdbltr

[PATCH] RISC-V: Minimal support for ssdbltrp and smdbltrp extension.

2024-11-28 Thread Dongyan Chen
This patch support ssdbltrp[1] and smdbltrp[2] extension. To enable GCC to recognize and process ssdbltrp and smdbltrp extension correctly at compile time. [1] https://github.com/riscv/riscv-isa-manual/blob/main/src/ssdbltrp.adoc [2] https://github.com/riscv/riscv-isa-manual/blob/main/src/smdbltr

[PATCH v3] RISC-V: Minimal support for svvptc extension.

2024-11-21 Thread Dongyan Chen
This patch support svvptc extension[1]. To enable GCC to recognize and process svvptc extension correctly at compile time. [1] https://github.com/riscv/riscv-svvptc gcc/ChangeLog: * common/config/riscv/riscv-common.cc: New extension. * common/config/riscv/riscv-ext-bitmask.def (

[PATCH v2] RISC-V: Minimal support for svvptc extension.

2024-11-21 Thread Dongyan Chen
This patch support svvptc extension[1]. To enable GCC to recognize and process svvptc extension correctly at compile time. [1] https://github.com/riscv/riscv-svvptc gcc/ChangeLog: * common/config/riscv/riscv-common.cc: New extension. * common/config/riscv/riscv-ext-bitmask.def (

[PATCH] RISC-V: Minimal support for svvptc extension.

2024-11-21 Thread Dongyan Chen
This patch support svvptc extension. To enable GCC to recognize and process svvptc extension correctly at compile time. gcc/ChangeLog: * common/config/riscv/riscv-common.cc: New extension. * common/config/riscv/riscv-ext-bitmask.def (RISCV_EXT_BITMASK): Ditto. * config/ri