回复:Re: Re: Re: 回复: Re: RISCV: Support Zilsd and Zcmlsd extensions.
孙东亚
sundongya@nucleisys.com
Wed Mar 26 07:16:32 GMT 2025
Thanks for your reply.
Thanks for your advice, we've adjusted the test case, keeping only the even operands checked in the fail test cases. Also, we've merged the test cases for zilsd and zclsd.
About co-author, we initially found the open-source repository at https://github.com/nxp-auto-tools/binutils_zilsd/tree/zilsd for zilsd-related extension support. We submitted our implementation there. After Edmar Wienskoski <edmar.wienskoski@nxp.com> reviewed it, our submission was merged into their repository. Later, we pushed our patch upstream. So Edmar Wienskoski is our collaborator.
Besides, our team has three people in total. The other two collaborators are LIU Xu <liuxu@nucleisys.com> and ZHAO Fujin <zhaofujin@nucleisys.com>.
Ref: https://github.com/riscv/riscv-zilsd/blob/main/zilsd.adoc
bfd/ChangeLog:
* elfxx-riscv.c (riscv_parse_check_conflicts):"zclsd" conflict with the “c+f'/ zcf”extension.
(riscv_multi_subset_supports):Handle zilsd and zclsd.
(riscv_multi_subset_supports_ext):Handle zilsd and zclsd.
gas/ChangeLog:
* testsuite/gas/riscv/zilsd-zclsd-fail.d: New test.
* testsuite/gas/riscv/zilsd-zclsd-fail.l: New test.
* testsuite/gas/riscv/zilsd-zclsd-fail.s: New test.
* testsuite/gas/riscv/zilsd-zclsd.d: New test.
* testsuite/gas/riscv/zilsd-zclsd.s: New test.
include/ChangeLog:
* opcode/riscv.h (enum riscv_insn_class):Add INSN_CLASS_ZILSD and INSN_CLASS_ZCLSD.
opcodes/ChangeLog:
* riscv-opc.c (MASK_CRS2S):Define the crs2s register operand mask.
(match_rd_even):Constrain the rd register operand.
(match_rs2_even):Constrain the rs2 register operand.
(match_rd_even_nonzero):Constrain the rd register operand.
(match_rs1_nonzero_rs2_even):Constrain the rs1 and rs2 register operand.
(match_crs2s_even):Constrain the crs2s register operand.
(match_crs2_even):Constrain the crs2 register operand.
Signed-off-by: dysun <sundongya@nucleisys.com>Co-developed-by: LIU Xu <liuxu@nucleisys.com>
Co-developed-by: ZHAO Fujin <zhaofujin@nucleisys.com>
Co-developed-by: Edmar Wienskoski <edmar.wienskoski@NXP.com>
---
bfd/elfxx-riscv.c | 18 ++++++++
gas/testsuite/gas/riscv/zilsd-zclsd-fail.d | 3 ++
gas/testsuite/gas/riscv/zilsd-zclsd-fail.l | 15 ++++++
gas/testsuite/gas/riscv/zilsd-zclsd-fail.s | 15 ++++++
gas/testsuite/gas/riscv/zilsd-zclsd.d | 29 ++++++++++++
gas/testsuite/gas/riscv/zilsd-zclsd.s | 20 ++++++++
include/opcode/riscv.h | 2 +
opcodes/riscv-opc.c | 54 ++++++++++++++++++++++
8 files changed, 156 insertions(+)
create mode 100644 gas/testsuite/gas/riscv/zilsd-zclsd-fail.d
create mode 100644 gas/testsuite/gas/riscv/zilsd-zclsd-fail.l
create mode 100644 gas/testsuite/gas/riscv/zilsd-zclsd-fail.s
create mode 100644 gas/testsuite/gas/riscv/zilsd-zclsd.d
create mode 100644 gas/testsuite/gas/riscv/zilsd-zclsd.s
Nelson Chu<nelson@rivosinc.com> 在 2025年3月21日 周五 12:26 写道:
On Wed, Mar 19, 2025 at 11:28 AM 孙东亚 <sundongya@nucleisys.com> wrote:
Thanks for your valuable suggestions.
First, regarding the certification matter, I would like to mention that our company had previously completed the signing process. The name of the signature package we received is Nuclei.System.Technology.1694426.GNU.tar.gz. We would appreciate it if you could help us double-check this to ensure everything is in order.
Okay, thanks.
Do you mind using git send-email to send the patch or git format-patch to generate the patch? I am not sure what you want to show in the commit message? Including which name you want to use, and whether you have any co-author. Or you just let me know here, I will add it. Otherwise I will just use Sung Dongya <sundongya@nucleisys.com> for the patch. If you have any Co-Authored-By people but they don't have the copyright, then we will also need their personal Signed-off-by, you can see how these works in other patches.
A minor stuff that I didn't notice before, can we just keep the even operands checked in the fail test cases? Since that is the only new limitation for ld and sd. And probably good to merge zilsd and zclsd test cases into one file.
Thanks
Nelson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250326/bdc73ab1/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zilsd-zclsd-20250326.patch
Type: application/octet-stream
Size: 13520 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250326/bdc73ab1/attachment-0001.obj>
More information about the Binutils
mailing list