[arch] riscv64: add support for Zicond instructions

8 views
Skip to first unread message

Gerrit Bot (Gerrit)

unread,
Sep 25, 2025, 9:48:05 PMSep 25
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gerrit Bot has uploaded the change for review

Commit message

riscv64: add support for Zicond  instructions

Add support for the dissassembly of Zicond instructions and test cases.
Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
GitHub-Last-Rev: 33a24514eefed08fa824feda9274b449f1709d3e
GitHub-Pull-Request: golang/arch#12

Change diff

diff --git a/riscv64/riscv64asm/tables.go b/riscv64/riscv64asm/tables.go
index 18c9fbf..2a951f9 100644
--- a/riscv64/riscv64asm/tables.go
+++ b/riscv64/riscv64asm/tables.go
@@ -116,6 +116,8 @@
CSRRWI
CTZ
CTZW
+ CZERO_EQZ
+ CZERO_NEZ
C_ADD
C_ADDI
C_ADDI16SP
@@ -1110,6 +1112,8 @@
CSRRWI: "CSRRWI",
CTZ: "CTZ",
CTZW: "CTZW",
+ CZERO_EQZ: "CZERO.EQZ",
+ CZERO_NEZ: "CZERO.NEZ",
C_ADD: "C.ADD",
C_ADDI: "C.ADDI",
C_ADDI16SP: "C.ADDI16SP",
@@ -2211,6 +2215,10 @@
{mask: 0xfff0707f, value: 0x60101013, op: CTZ, args: argTypeList{arg_rd, arg_rs1}},
// CTZW rd, rs1
{mask: 0xfff0707f, value: 0x6010101b, op: CTZW, args: argTypeList{arg_rd, arg_rs1}},
+ // CZERO.EQZ rd, rs1, rs2
+ {mask: 0xfe00707f, value: 0x0e005033, op: CZERO_EQZ, args: argTypeList{arg_rd, arg_rs1, arg_rs2}},
+ // CZERO.NEZ rd, rs1, rs2
+ {mask: 0xfe00707f, value: 0x0e007033, op: CZERO_NEZ, args: argTypeList{arg_rd, arg_rs1, arg_rs2}},
// C.ADD rd_rs1_n0, c_rs2_n0
{mask: 0x0000f003, value: 0x00009002, op: C_ADD, args: argTypeList{arg_rd_rs1_n0, arg_c_rs2_n0}},
// C.ADDI rd_rs1_n0, c_nzimm6
diff --git a/riscv64/riscv64asm/testdata/gnucases.txt b/riscv64/riscv64asm/testdata/gnucases.txt
index 56139a9..9343cb0 100644
--- a/riscv64/riscv64asm/testdata/gnucases.txt
+++ b/riscv64/riscv64asm/testdata/gnucases.txt
@@ -384,6 +384,10 @@
8624| fld f9,64(x2)
3eb0| fsd f15,32(x2)

+# 12.3: "Zicond" Extension for Integer Conditional Operations, Version 1.0.0
+b353530e| czero.eqz x7,x6,x5
+b373530e| czero.nez x7,x6,x5
+
# "V" Standard Extension for Vector Operations, Version 1.0

# 31.6: Configuration Setting Instructions
diff --git a/riscv64/riscv64asm/testdata/plan9cases.txt b/riscv64/riscv64asm/testdata/plan9cases.txt
index 8131764..fba383a 100644
--- a/riscv64/riscv64asm/testdata/plan9cases.txt
+++ b/riscv64/riscv64asm/testdata/plan9cases.txt
@@ -334,6 +334,10 @@
b3115228| BSET X5, X4, X3
1393f32b| BSETI $63, X7, X6

+# 12.3: "Zicond" Extension for Integer Conditional Operations, Version 1.0.0
+b353530e| CZEROEQZ X5, X6, X7
+b373530e| CZERONEZ X5, X6, X7
+
# "V" Standard Extension for Vector Operations, Version 1.0

# 31.6: Configuration Setting Instructions
diff --git a/riscv64/riscv64spec/spec.go b/riscv64/riscv64spec/spec.go
index 0434337..26845a5 100644
--- a/riscv64/riscv64spec/spec.go
+++ b/riscv64/riscv64spec/spec.go
@@ -36,6 +36,7 @@
"rv_zbb",
"rv_zbs",
"rv_zfh",
+ "rv_zicond",
"rv_zicsr",
"rv_zifencei",
"rv64_a",
@@ -171,7 +172,7 @@

func genInst(words []string) {
op := strings.ToUpper(strings.Replace(words[0], ".", "_", -1))
- opstr := fmt.Sprintf("%s:\t\"%s\",", op, strings.ToUpper(words[0]))
+ opstr := fmt.Sprintf("%-18s %q,", op+":", strings.ToUpper(words[0]))

var value uint32
var mask uint32
@@ -207,7 +208,7 @@
// Re-generate the opcode string, opcode value and mask.
for i, suf := range suffix {
aop := op + strings.Replace(suf, ".", "_", -1)
- aopstr := fmt.Sprintf("%s:\t\"%s\",", aop, strings.ToUpper(words[0])+suf)
+ aopstr := fmt.Sprintf("%-18s %q,", aop+":", strings.ToUpper(words[0])+suf)
avalue := value | (uint32(i) << 25)
amask := mask | 0x06000000
ainstFormatComment := "// " + strings.Replace(aop, "_", ".", -1) + " " + strings.Replace(instArgsStr, "arg_", "", -1)
@@ -243,7 +244,7 @@
for i := uint32(2); i <= 8; i++ {
segName := strings.ToUpper(fmt.Sprintf("%sSEG%d%s", segOpPrefix, i, segOpSuffix))
segOp := strings.Replace(segName, ".", "_", -1)
- segOpStr := fmt.Sprintf("%s:\t\"%s\",", segOp, segName)
+ segOpStr := fmt.Sprintf("%-18s %q,", segOp+":", segName)
segValue := value | (i-1)<<29
instFormatComment := "// " + segName + " " + strings.Replace(instArgsStr, "arg_", "", -1)
instFormat := fmt.Sprintf("{mask: %#08x, value: %#08x, op: %s, args: argTypeList{%s}},", mask, segValue, segOp, instArgsStr)

Change information

Files:
  • M riscv64/riscv64asm/tables.go
  • M riscv64/riscv64asm/testdata/gnucases.txt
  • M riscv64/riscv64asm/testdata/plan9cases.txt
  • M riscv64/riscv64spec/spec.go
Change size: S
Delta: 4 files changed, 20 insertions(+), 3 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: arch
Gerrit-Branch: master
Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
Gerrit-Change-Number: 707015
Gerrit-PatchSet: 1
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Gopher Robot (Gerrit)

unread,
Sep 25, 2025, 9:48:06 PMSep 25
to Gerrit Bot, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gopher Robot added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Gopher Robot . unresolved

I spotted some possible problems with your PR:

  1. You usually need to reference a bug number for all but trivial or cosmetic fixes. For the arch repo, the format is usually 'Fixes golang/go#12345' or 'Updates golang/go#12345' at the end of the commit message. Should you have a bug reference?

Please address any problems by updating the GitHub PR.

When complete, mark this comment as 'Done' and click the [blue 'Reply' button](https://go.dev/wiki/GerritBot#i-left-a-reply-to-a-comment-in-gerrit-but-no-one-but-me-can-see-it) above. These findings are based on heuristics; if a finding does not apply, briefly reply here saying so.

To update the commit title or commit message body shown here in Gerrit, you must edit the GitHub PR title and PR description (the first comment) in the GitHub web interface using the 'Edit' button or 'Edit' menu entry there. Note: pushing a new commit to the PR will not automatically update the commit message used by Gerrit.

For more details, see:

(In general for Gerrit code reviews, the change author is expected to [log in to Gerrit](https://go-review.googlesource.com/login/) with a Gmail or other Google account and then close out each piece of feedback by marking it as 'Done' if implemented as suggested or otherwise reply to each review comment. See the [Review](https://go.dev/doc/contribute#review) section of the Contributing Guide for details.)

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: arch
    Gerrit-Branch: master
    Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
    Gerrit-Change-Number: 707015
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Comment-Date: Fri, 26 Sep 2025 01:48:02 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Gopher Robot (Gerrit)

    unread,
    Sep 25, 2025, 9:51:07 PMSep 25
    to Gerrit Bot, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Message from Gopher Robot

    Congratulations on opening your first change. Thank you for your contribution!

    Next steps:
    A maintainer will review your change and provide feedback. See
    https://go.dev/doc/contribute#review for more info and tips to get your
    patch through code review.

    Most changes in the Go project go through a few rounds of revision. This can be
    surprising to people new to the project. The careful, iterative review process
    is our way of helping mentor contributors and ensuring that their contributions
    have a lasting impact.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: arch
    Gerrit-Branch: master
    Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
    Gerrit-Change-Number: 707015
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Comment-Date: Fri, 26 Sep 2025 01:51:03 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Gerrit Bot (Gerrit)

    unread,
    Sep 25, 2025, 9:56:42 PMSep 25
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Gerrit Bot uploaded new patchset

    Gerrit Bot uploaded patch set #2 to this change.
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newpatchset
    Gerrit-Project: arch
    Gerrit-Branch: master
    Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
    Gerrit-Change-Number: 707015
    Gerrit-PatchSet: 2
    unsatisfied_requirement
    open
    diffy

    Gerrit Bot (Gerrit)

    unread,
    Sep 25, 2025, 10:11:25 PMSep 25
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
    Attention needed from Cherry Mui

    Gerrit Bot uploaded new patchset

    Gerrit Bot uploaded patch set #3 to this change.
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newpatchset
    Gerrit-Project: arch
    Gerrit-Branch: master
    Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
    Gerrit-Change-Number: 707015
    Gerrit-PatchSet: 3
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Cherry Mui <cher...@google.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Attention: Cherry Mui <cher...@google.com>
    unsatisfied_requirement
    open
    diffy

    Gerrit Bot (Gerrit)

    unread,
    Sep 25, 2025, 10:25:19 PMSep 25
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
    Attention needed from Cherry Mui

    Gerrit Bot uploaded new patchset

    Gerrit Bot uploaded patch set #4 to this change.
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newpatchset
    Gerrit-Project: arch
    Gerrit-Branch: master
    Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
    Gerrit-Change-Number: 707015
    Gerrit-PatchSet: 4
    unsatisfied_requirement
    open
    diffy

    Mark Ryan (Gerrit)

    unread,
    Oct 6, 2025, 6:42:09 AM (10 days ago) Oct 6
    to Xueqi Luo, Gerrit Bot, goph...@pubsubhelper.golang.org, Joel Sing, Meng Zhuo, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Cherry Mui, Joel Sing and Meng Zhuo

    Mark Ryan added 2 comments

    Patchset-level comments
    File-level comment, Patchset 7 (Latest):
    Mark Ryan . resolved

    The commit message needs to be line wrapped at 70 columns.

    Also the tests fails on a riscv64 device with objdump installed. The issue here is that objdumpext_test.go needs to be update to include Zicond in the .riscv.attributes section of the generated test binaries. Note the last person to update objdumpext_test.go was me, and it looks like I didn't do this correctly. I added v1p0_ but I didn't update the lengths. It was just luck it worked. So we need to add zicond1p0_ to the string and update the lengths by 15, 10 for zicond1p0_ and 5 for v1p0_ that I forgot to add in https://go-review.googlesource.com/c/arch/+/670876.

    Locally, this works for me

    ```
    @@ -277,7 +277,7 @@ func writeELF64(f *os.File, size int) error {
    Type: uint32(0x70000003), // SHT_RISCV_ATTRIBUTES
    Addr: 0,
    Off: uint64(off2 + (off3-off2)*4 + strtabsize),
    - Size: 114,
    + Size: 129,
    Addralign: 1,
    }
    binary.Write(&buf, binary.LittleEndian, &sect)
    @@ -293,7 +293,7 @@ func writeELF64(f *os.File, size int) error {
    buf.WriteString("\x00.text\x00.riscv.attributes\x00.shstrtab\x00")
    // Contents of .riscv.attributes section
    // which specify the extension and priv spec version. (1.11)
    - buf.WriteString("Aq\x00\x00\x00riscv\x00\x01g\x00\x00\x00\x05rv64i2p0_m2p0_a2p0_f2p0_d2p0_q2p0_c2p0_v1p0_zmmul1p0_zfh1p0_zfhmin1p0_zba1p0_zbb1p0_zbc1p0_zbs1p0\x00\x08\x01\x0a\x0b")
    + buf.WriteString("A\x80\x00\x00\x00riscv\x00\x01\x76\x00\x00\x00\x05rv64i2p0_m2p0_a2p0_f2p0_d2p0_q2p0_c2p0_v1p0_zicond1p0_zmmul1p0_zfh1p0_zfhmin1p0_zba1p0_zbb1p0_zbc1p0_zbs1p0\x00\x08\x01\x0a\x0b")
    f.Write(buf.Bytes())
    return nil
    }
    ```

    @mengzh...@gmail.com do you know what the procedure for updating this string is? Do we just do it manually, or do we pull it out of some compiled C binary.

    File riscv64/riscv64spec/spec.go
    Line 211, Patchset 7 (Latest): aopstr := fmt.Sprintf("%-18s %q,", aop+":", strings.ToUpper(words[0])+suf)
    Mark Ryan . unresolved

    I'm not sure it's worth trying to get the spacing right here here, as we need to run go fmt on the generate tables.go before copying it into riscv64asm folder. This will override all your custom formatting.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    • Joel Sing
    • Meng Zhuo
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: arch
    Gerrit-Branch: master
    Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
    Gerrit-Change-Number: 707015
    Gerrit-PatchSet: 7
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Cherry Mui <cher...@google.com>
    Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
    Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
    Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Xueqi Luo <18243...@qq.com>
    Gerrit-Attention: Cherry Mui <cher...@google.com>
    Gerrit-Attention: Joel Sing <jo...@sing.id.au>
    Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
    Gerrit-Comment-Date: Mon, 06 Oct 2025 10:42:00 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Meng Zhuo (Gerrit)

    unread,
    Oct 7, 2025, 9:13:24 AM (9 days ago) Oct 7
    to Xueqi Luo, Gerrit Bot, goph...@pubsubhelper.golang.org, Joel Sing, Mark Ryan, Meng Zhuo, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Cherry Mui, Joel Sing and Mark Ryan

    Meng Zhuo added 1 comment

    Patchset-level comments
    Mark Ryan . resolved

    The commit message needs to be line wrapped at 70 columns.

    Also the tests fails on a riscv64 device with objdump installed. The issue here is that objdumpext_test.go needs to be update to include Zicond in the .riscv.attributes section of the generated test binaries. Note the last person to update objdumpext_test.go was me, and it looks like I didn't do this correctly. I added v1p0_ but I didn't update the lengths. It was just luck it worked. So we need to add zicond1p0_ to the string and update the lengths by 15, 10 for zicond1p0_ and 5 for v1p0_ that I forgot to add in https://go-review.googlesource.com/c/arch/+/670876.

    Locally, this works for me

    ```
    @@ -277,7 +277,7 @@ func writeELF64(f *os.File, size int) error {
    Type: uint32(0x70000003), // SHT_RISCV_ATTRIBUTES
    Addr: 0,
    Off: uint64(off2 + (off3-off2)*4 + strtabsize),
    - Size: 114,
    + Size: 129,
    Addralign: 1,
    }
    binary.Write(&buf, binary.LittleEndian, &sect)
    @@ -293,7 +293,7 @@ func writeELF64(f *os.File, size int) error {
    buf.WriteString("\x00.text\x00.riscv.attributes\x00.shstrtab\x00")
    // Contents of .riscv.attributes section
    // which specify the extension and priv spec version. (1.11)
    - buf.WriteString("Aq\x00\x00\x00riscv\x00\x01g\x00\x00\x00\x05rv64i2p0_m2p0_a2p0_f2p0_d2p0_q2p0_c2p0_v1p0_zmmul1p0_zfh1p0_zfhmin1p0_zba1p0_zbb1p0_zbc1p0_zbs1p0\x00\x08\x01\x0a\x0b")
    + buf.WriteString("A\x80\x00\x00\x00riscv\x00\x01\x76\x00\x00\x00\x05rv64i2p0_m2p0_a2p0_f2p0_d2p0_q2p0_c2p0_v1p0_zicond1p0_zmmul1p0_zfh1p0_zfhmin1p0_zba1p0_zbb1p0_zbc1p0_zbs1p0\x00\x08\x01\x0a\x0b")
    f.Write(buf.Bytes())
    return nil
    }
    ```

    @mengzh...@gmail.com do you know what the procedure for updating this string is? Do we just do it manually, or do we pull it out of some compiled C binary.

    Meng Zhuo

    If I recall correctly the attributes from the first commit is pull out of compiled C binary, which inspried my attrs CL.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    • Joel Sing
    • Mark Ryan
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: arch
    Gerrit-Branch: master
    Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
    Gerrit-Change-Number: 707015
    Gerrit-PatchSet: 7
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Cherry Mui <cher...@google.com>
    Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
    Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
    Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Xueqi Luo <18243...@qq.com>
    Gerrit-Attention: Cherry Mui <cher...@google.com>
    Gerrit-Attention: Joel Sing <jo...@sing.id.au>
    Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
    Gerrit-Comment-Date: Tue, 07 Oct 2025 13:13:16 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Mark Ryan <mark...@rivosinc.com>
    unsatisfied_requirement
    open
    diffy

    Gerrit Bot (Gerrit)

    unread,
    Oct 9, 2025, 3:46:53 AM (7 days ago) Oct 9
    to Xueqi Luo, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
    Attention needed from Cherry Mui, Joel Sing, Mark Ryan and Meng Zhuo

    Gerrit Bot uploaded new patchset

    Gerrit Bot uploaded patch set #8 to this change.
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    • Joel Sing
    • Mark Ryan
    • Meng Zhuo
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newpatchset
    Gerrit-Project: arch
    Gerrit-Branch: master
    Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
    Gerrit-Change-Number: 707015
    Gerrit-PatchSet: 8
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Cherry Mui <cher...@google.com>
    Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
    Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
    Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Xueqi Luo <18243...@qq.com>
    Gerrit-Attention: Cherry Mui <cher...@google.com>
    Gerrit-Attention: Joel Sing <jo...@sing.id.au>
    Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
    Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
    unsatisfied_requirement
    open
    diffy

    Gerrit Bot (Gerrit)

    unread,
    Oct 9, 2025, 3:55:23 AM (7 days ago) Oct 9
    to Xueqi Luo, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
    Attention needed from Cherry Mui, Joel Sing, Mark Ryan and Meng Zhuo

    Gerrit Bot uploaded new patchset

    Gerrit Bot uploaded patch set #9 to this change.
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    • Joel Sing
    • Mark Ryan
    • Meng Zhuo
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newpatchset
    Gerrit-Project: arch
    Gerrit-Branch: master
    Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
    Gerrit-Change-Number: 707015
    Gerrit-PatchSet: 9
    unsatisfied_requirement
    open
    diffy

    Xueqi Luo (Gerrit)

    unread,
    Oct 9, 2025, 3:55:47 AM (7 days ago) Oct 9
    to Gerrit Bot, goph...@pubsubhelper.golang.org, Joel Sing, Mark Ryan, Meng Zhuo, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Cherry Mui, Joel Sing, Mark Ryan and Meng Zhuo

    Xueqi Luo added 2 comments

    Patchset-level comments
    File-level comment, Patchset 8:
    Xueqi Luo . resolved

    Thanks for catching that! Fixed.

    File riscv64/riscv64spec/spec.go
    Line 211, Patchset 7: aopstr := fmt.Sprintf("%-18s %q,", aop+":", strings.ToUpper(words[0])+suf)
    Mark Ryan . resolved

    I'm not sure it's worth trying to get the spacing right here here, as we need to run go fmt on the generate tables.go before copying it into riscv64asm folder. This will override all your custom formatting.

    Xueqi Luo

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    • Joel Sing
    • Mark Ryan
    • Meng Zhuo
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: arch
    Gerrit-Branch: master
    Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
    Gerrit-Change-Number: 707015
    Gerrit-PatchSet: 8
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Cherry Mui <cher...@google.com>
    Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
    Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
    Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Xueqi Luo <18243...@qq.com>
    Gerrit-Attention: Cherry Mui <cher...@google.com>
    Gerrit-Attention: Joel Sing <jo...@sing.id.au>
    Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
    Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
    Gerrit-Comment-Date: Thu, 09 Oct 2025 07:55:40 +0000
    unsatisfied_requirement
    open
    diffy

    Meng Zhuo (Gerrit)

    unread,
    Oct 10, 2025, 4:32:57 AM (6 days ago) Oct 10
    to Xueqi Luo, Gerrit Bot, goph...@pubsubhelper.golang.org, Meng Zhuo, Joel Sing, Mark Ryan, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Cherry Mui, Joel Sing and Mark Ryan

    Meng Zhuo voted and added 3 comments

    Votes added by Meng Zhuo

    Commit-Queue+1

    3 comments

    Patchset-level comments
    File-level comment, Patchset 9 (Latest):
    Meng Zhuo . resolved

    some nits, general LGTM.

    By the way, @mark...@rivosinc.com I found that zfh already inclued in original attributes.

    Commit Message
    Line 7, Patchset 9 (Latest):riscv64: add support for Zicond instructions
    Meng Zhuo . unresolved

    extra space.

    Line 9, Patchset 9 (Latest):Add support for the dissassembly of Zicond instructions and test cases.
    Meng Zhuo . unresolved

    extra space

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    • Joel Sing
    • Mark Ryan
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: arch
    Gerrit-Branch: master
    Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
    Gerrit-Change-Number: 707015
    Gerrit-PatchSet: 9
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Cherry Mui <cher...@google.com>
    Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
    Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
    Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Xueqi Luo <18243...@qq.com>
    Gerrit-Attention: Cherry Mui <cher...@google.com>
    Gerrit-Attention: Joel Sing <jo...@sing.id.au>
    Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
    Gerrit-Comment-Date: Fri, 10 Oct 2025 08:32:50 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Gerrit Bot (Gerrit)

    unread,
    Oct 10, 2025, 4:55:39 AM (6 days ago) Oct 10
    to Xueqi Luo, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
    Attention needed from Cherry Mui, Joel Sing, Mark Ryan and Meng Zhuo

    Gerrit Bot uploaded new patchset

    Gerrit Bot uploaded patch set #10 to this change.
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    • Joel Sing
    • Mark Ryan
    • Meng Zhuo
    Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: newpatchset
      Gerrit-Project: arch
      Gerrit-Branch: master
      Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
      Gerrit-Change-Number: 707015
      Gerrit-PatchSet: 10
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
      Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
      Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Xueqi Luo <18243...@qq.com>
      Gerrit-Attention: Cherry Mui <cher...@google.com>
      Gerrit-Attention: Joel Sing <jo...@sing.id.au>
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      Xueqi Luo (Gerrit)

      unread,
      Oct 10, 2025, 5:09:32 AM (6 days ago) Oct 10
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Meng Zhuo, Joel Sing, Mark Ryan, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Cherry Mui, Joel Sing, Mark Ryan and Meng Zhuo

      Xueqi Luo added 3 comments

      Patchset-level comments
      File-level comment, Patchset 10 (Latest):
      Xueqi Luo . resolved

      Thank you, fixed.

      Commit Message
      Line 7, Patchset 9:riscv64: add support for Zicond instructions
      Meng Zhuo . resolved

      extra space.

      Xueqi Luo

      Done

      Line 9, Patchset 9:Add support for the dissassembly of Zicond instructions and test cases.
      Meng Zhuo . resolved

      extra space

      Xueqi Luo

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Cherry Mui
      • Joel Sing
      • Mark Ryan
      • Meng Zhuo
      Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: arch
      Gerrit-Branch: master
      Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
      Gerrit-Change-Number: 707015
      Gerrit-PatchSet: 10
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
      Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
      Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Xueqi Luo <18243...@qq.com>
      Gerrit-Attention: Cherry Mui <cher...@google.com>
      Gerrit-Attention: Joel Sing <jo...@sing.id.au>
      Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Comment-Date: Fri, 10 Oct 2025 09:09:25 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Meng Zhuo <mengzh...@gmail.com>
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      Xueqi Luo (Gerrit)

      unread,
      Oct 13, 2025, 4:37:00 AM (3 days ago) Oct 13
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Meng Zhuo, Joel Sing, Mark Ryan, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Cherry Mui, Joel Sing, Mark Ryan and Meng Zhuo

      Xueqi Luo added 1 comment

      Patchset-level comments
      Mark Ryan . resolved

      The commit message needs to be line wrapped at 70 columns.

      Also the tests fails on a riscv64 device with objdump installed. The issue here is that objdumpext_test.go needs to be update to include Zicond in the .riscv.attributes section of the generated test binaries. Note the last person to update objdumpext_test.go was me, and it looks like I didn't do this correctly. I added v1p0_ but I didn't update the lengths. It was just luck it worked. So we need to add zicond1p0_ to the string and update the lengths by 15, 10 for zicond1p0_ and 5 for v1p0_ that I forgot to add in https://go-review.googlesource.com/c/arch/+/670876.

      Locally, this works for me

      ```
      @@ -277,7 +277,7 @@ func writeELF64(f *os.File, size int) error {
      Type: uint32(0x70000003), // SHT_RISCV_ATTRIBUTES
      Addr: 0,
      Off: uint64(off2 + (off3-off2)*4 + strtabsize),
      - Size: 114,
      + Size: 129,
      Addralign: 1,
      }
      binary.Write(&buf, binary.LittleEndian, &sect)
      @@ -293,7 +293,7 @@ func writeELF64(f *os.File, size int) error {
      buf.WriteString("\x00.text\x00.riscv.attributes\x00.shstrtab\x00")
      // Contents of .riscv.attributes section
      // which specify the extension and priv spec version. (1.11)
      - buf.WriteString("Aq\x00\x00\x00riscv\x00\x01g\x00\x00\x00\x05rv64i2p0_m2p0_a2p0_f2p0_d2p0_q2p0_c2p0_v1p0_zmmul1p0_zfh1p0_zfhmin1p0_zba1p0_zbb1p0_zbc1p0_zbs1p0\x00\x08\x01\x0a\x0b")
      + buf.WriteString("A\x80\x00\x00\x00riscv\x00\x01\x76\x00\x00\x00\x05rv64i2p0_m2p0_a2p0_f2p0_d2p0_q2p0_c2p0_v1p0_zicond1p0_zmmul1p0_zfh1p0_zfhmin1p0_zba1p0_zbb1p0_zbc1p0_zbs1p0\x00\x08\x01\x0a\x0b")
      f.Write(buf.Bytes())
      return nil
      }
      ```

      @mengzh...@gmail.com do you know what the procedure for updating this string is? Do we just do it manually, or do we pull it out of some compiled C binary.

      Meng Zhuo

      If I recall correctly the attributes from the first commit is pull out of compiled C binary, which inspried my attrs CL.

      Xueqi Luo

      Hi @mark...@rivosinc.com @mengzh...@gmail.com

      I've addressed your review comments and pushed a new patchset. Could you please take another look? Thanks!

      Gerrit-Comment-Date: Mon, 13 Oct 2025 08:36:54 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Meng Zhuo <mengzh...@gmail.com>
      Comment-In-Reply-To: Mark Ryan <mark...@rivosinc.com>
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      Mark Ryan (Gerrit)

      unread,
      Oct 13, 2025, 8:57:27 AM (3 days ago) Oct 13
      to Xueqi Luo, Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Meng Zhuo, Joel Sing, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Cherry Mui, Joel Sing and Meng Zhuo

      Mark Ryan voted and added 2 comments

      Votes added by Mark Ryan

      Code-Review+2

      2 comments

      Patchset-level comments
      File-level comment, Patchset 10 (Latest):
      Mark Ryan . resolved

      LGTM. Tried this out locally and all the tests are passing now.

      File riscv64/riscv64spec/spec.go
      Line 23, Patchset 10 (Parent):// RV64GC_zba_zbb_zbs Extensions Listing
      Mark Ryan . unresolved

      I note this comment is out of date, but it has been for some time. I think personally, we should just remove it. We can do this separately though. Doesn't need to be done in this patch.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Cherry Mui
      • Joel Sing
      • Meng Zhuo
      Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: arch
      Gerrit-Branch: master
      Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
      Gerrit-Change-Number: 707015
      Gerrit-PatchSet: 10
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
      Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
      Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Xueqi Luo <18243...@qq.com>
      Gerrit-Attention: Cherry Mui <cher...@google.com>
      Gerrit-Attention: Joel Sing <jo...@sing.id.au>
      Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-Comment-Date: Mon, 13 Oct 2025 12:57:20 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Mark Ryan (Gerrit)

      unread,
      Oct 13, 2025, 8:58:03 AM (3 days ago) Oct 13
      to Xueqi Luo, Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Meng Zhuo, Joel Sing, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Cherry Mui, Joel Sing and Meng Zhuo

      Mark Ryan added 1 comment

      File riscv64/riscv64spec/spec.go
      Line 23, Patchset 10 (Parent):// RV64GC_zba_zbb_zbs Extensions Listing
      Mark Ryan . resolved

      I note this comment is out of date, but it has been for some time. I think personally, we should just remove it. We can do this separately though. Doesn't need to be done in this patch.

      Mark Ryan

      Marked as resolved.

      Gerrit-Comment-Date: Mon, 13 Oct 2025 12:57:58 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Mark Ryan <mark...@rivosinc.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Joel Sing (Gerrit)

      unread,
      Oct 13, 2025, 10:07:15 AM (3 days ago) Oct 13
      to Xueqi Luo, Gerrit Bot, goph...@pubsubhelper.golang.org, Mark Ryan, Go LUCI, Meng Zhuo, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Cherry Mui and Meng Zhuo

      Joel Sing voted and added 1 comment

      Votes added by Joel Sing

      Code-Review+2

      1 comment

      Commit Message
      Line 9, Patchset 10 (Latest):Add support for the dissassembly of Zicond instructions and test cases.
      Joel Sing . unresolved

      ```suggestion
      Add support for the disassembly of Zicond instructions and test cases.
      ```

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Cherry Mui
      • Meng Zhuo
      Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: arch
      Gerrit-Branch: master
      Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
      Gerrit-Change-Number: 707015
      Gerrit-PatchSet: 10
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
      Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
      Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Xueqi Luo <18243...@qq.com>
      Gerrit-Attention: Cherry Mui <cher...@google.com>
      Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-Comment-Date: Mon, 13 Oct 2025 14:07:05 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Gerrit Bot (Gerrit)

      unread,
      Oct 13, 2025, 9:04:42 PM (2 days ago) Oct 13
      to Xueqi Luo, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
      Attention needed from Cherry Mui, Joel Sing, Mark Ryan and Meng Zhuo

      Gerrit Bot uploaded new patchset

      Gerrit Bot uploaded patch set #11 to this change.
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Cherry Mui
      • Joel Sing
      • Mark Ryan
      • Meng Zhuo
      Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: newpatchset
      Gerrit-Project: arch
      Gerrit-Branch: master
      Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
      Gerrit-Change-Number: 707015
      Gerrit-PatchSet: 11
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
      Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
      Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Xueqi Luo <18243...@qq.com>
      Gerrit-Attention: Cherry Mui <cher...@google.com>
      Gerrit-Attention: Joel Sing <jo...@sing.id.au>
      Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Xueqi Luo (Gerrit)

      unread,
      Oct 13, 2025, 9:06:52 PM (2 days ago) Oct 13
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Joel Sing, Mark Ryan, Go LUCI, Meng Zhuo, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Cherry Mui, Joel Sing, Mark Ryan and Meng Zhuo

      Xueqi Luo added 1 comment

      Commit Message
      Line 9, Patchset 10:Add support for the dissassembly of Zicond instructions and test cases.
      Joel Sing . resolved

      ```suggestion
      Add support for the disassembly of Zicond instructions and test cases.
      ```

      Xueqi Luo

      Cood catch, thank you.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Cherry Mui
      • Joel Sing
      • Mark Ryan
      • Meng Zhuo
      Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: arch
      Gerrit-Branch: master
      Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
      Gerrit-Change-Number: 707015
      Gerrit-PatchSet: 11
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
      Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
      Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Xueqi Luo <18243...@qq.com>
      Gerrit-Attention: Cherry Mui <cher...@google.com>
      Gerrit-Attention: Joel Sing <jo...@sing.id.au>
      Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Comment-Date: Tue, 14 Oct 2025 01:06:44 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Joel Sing <jo...@sing.id.au>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Xueqi Luo (Gerrit)

      unread,
      Oct 13, 2025, 9:07:39 PM (2 days ago) Oct 13
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Joel Sing, Mark Ryan, Go LUCI, Meng Zhuo, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Cherry Mui, Joel Sing, Mark Ryan and Meng Zhuo

      Xueqi Luo added 1 comment

      Patchset-level comments
      File-level comment, Patchset 1:
      Gopher Robot . resolved

      I spotted some possible problems with your PR:

        1. You usually need to reference a bug number for all but trivial or cosmetic fixes. For the arch repo, the format is usually 'Fixes golang/go#12345' or 'Updates golang/go#12345' at the end of the commit message. Should you have a bug reference?

      Please address any problems by updating the GitHub PR.

      When complete, mark this comment as 'Done' and click the [blue 'Reply' button](https://go.dev/wiki/GerritBot#i-left-a-reply-to-a-comment-in-gerrit-but-no-one-but-me-can-see-it) above. These findings are based on heuristics; if a finding does not apply, briefly reply here saying so.

      To update the commit title or commit message body shown here in Gerrit, you must edit the GitHub PR title and PR description (the first comment) in the GitHub web interface using the 'Edit' button or 'Edit' menu entry there. Note: pushing a new commit to the PR will not automatically update the commit message used by Gerrit.

      For more details, see:

      (In general for Gerrit code reviews, the change author is expected to [log in to Gerrit](https://go-review.googlesource.com/login/) with a Gmail or other Google account and then close out each piece of feedback by marking it as 'Done' if implemented as suggested or otherwise reply to each review comment. See the [Review](https://go.dev/doc/contribute#review) section of the Contributing Guide for details.)

      Xueqi Luo

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Cherry Mui
      • Joel Sing
      • Mark Ryan
      • Meng Zhuo
      Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: arch
      Gerrit-Branch: master
      Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
      Gerrit-Change-Number: 707015
      Gerrit-PatchSet: 11
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
      Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
      Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Xueqi Luo <18243...@qq.com>
      Gerrit-Attention: Cherry Mui <cher...@google.com>
      Gerrit-Attention: Joel Sing <jo...@sing.id.au>
      Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Comment-Date: Tue, 14 Oct 2025 01:07:33 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Gopher Robot <go...@golang.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Meng Zhuo (Gerrit)

      unread,
      Oct 13, 2025, 9:46:34 PM (2 days ago) Oct 13
      to Xueqi Luo, Gerrit Bot, goph...@pubsubhelper.golang.org, Meng Zhuo, Joel Sing, Mark Ryan, Go LUCI, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Cherry Mui, Joel Sing and Mark Ryan

      Meng Zhuo voted Code-Review+2

      Code-Review+2
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Cherry Mui
      • Joel Sing
      • Mark Ryan
      Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: arch
      Gerrit-Branch: master
      Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
      Gerrit-Change-Number: 707015
      Gerrit-PatchSet: 11
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
      Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
      Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Xueqi Luo <18243...@qq.com>
      Gerrit-Attention: Cherry Mui <cher...@google.com>
      Gerrit-Attention: Joel Sing <jo...@sing.id.au>
      Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Comment-Date: Tue, 14 Oct 2025 01:46:28 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Dmitri Shuralyov (Gerrit)

      unread,
      Oct 14, 2025, 2:48:41 PM (yesterday) Oct 14
      to Xueqi Luo, Gerrit Bot, goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Meng Zhuo, Joel Sing, Mark Ryan, Go LUCI, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Cherry Mui, Joel Sing and Mark Ryan

      Dmitri Shuralyov voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Cherry Mui
      • Joel Sing
      • Mark Ryan
      Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: arch
      Gerrit-Branch: master
      Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
      Gerrit-Change-Number: 707015
      Gerrit-PatchSet: 11
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
      Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
      Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
      Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
      Gerrit-CC: Dmitri Shuralyov <dmit...@golang.org>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Xueqi Luo <18243...@qq.com>
      Gerrit-Attention: Cherry Mui <cher...@google.com>
      Gerrit-Attention: Joel Sing <jo...@sing.id.au>
      Gerrit-Attention: Mark Ryan <mark...@rivosinc.com>
      Gerrit-Comment-Date: Tue, 14 Oct 2025 18:48:38 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Michael Pratt (Gerrit)

      unread,
      4:00 PM (8 hours ago) 4:00 PM
      to Xueqi Luo, Gerrit Bot, goph...@pubsubhelper.golang.org, Michael Pratt, Dmitri Shuralyov, Dmitri Shuralyov, Meng Zhuo, Joel Sing, Mark Ryan, Go LUCI, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Cherry Mui

      Michael Pratt voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Cherry Mui
      Submit Requirements:
        • requirement satisfiedCode-Review
        • requirement satisfiedNo-Unresolved-Comments
        • requirement satisfiedReview-Enforcement
        • requirement satisfiedTryBots-Pass
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: arch
        Gerrit-Branch: master
        Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
        Gerrit-Change-Number: 707015
        Gerrit-PatchSet: 11
        Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
        Gerrit-Reviewer: Cherry Mui <cher...@google.com>
        Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
        Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
        Gerrit-Reviewer: Mark Ryan <mark...@rivosinc.com>
        Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
        Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
        Gerrit-CC: Dmitri Shuralyov <dmit...@golang.org>
        Gerrit-CC: Gopher Robot <go...@golang.org>
        Gerrit-CC: Xueqi Luo <18243...@qq.com>
        Gerrit-Attention: Cherry Mui <cher...@google.com>
        Gerrit-Comment-Date: Wed, 15 Oct 2025 20:00:06 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Meng Zhuo (Gerrit)

        unread,
        9:05 PM (3 hours ago) 9:05 PM
        to Xueqi Luo, Meng Zhuo, Gerrit Bot, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Michael Pratt, Dmitri Shuralyov, Dmitri Shuralyov, Joel Sing, Mark Ryan, Go LUCI, Cherry Mui, Gopher Robot, golang-co...@googlegroups.com

        Meng Zhuo submitted the change

        Change information

        Commit message:
        riscv64: add support for Zicond instructions

        Add support for the disassembly of Zicond instructions and test cases.
        Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
        GitHub-Last-Rev: d544f98094aa2ad106658fe1789cc3ade21622db
        GitHub-Pull-Request: golang/arch#12
        Reviewed-by: Mark Ryan <mark...@rivosinc.com>
        Reviewed-by: Meng Zhuo <mengzh...@gmail.com>
        Reviewed-by: Dmitri Shuralyov <dmit...@google.com>
        Reviewed-by: Michael Pratt <mpr...@google.com>
        Reviewed-by: Joel Sing <jo...@sing.id.au>
        Files:
        • M riscv64/riscv64asm/objdumpext_test.go
        • M riscv64/riscv64asm/tables.go
        • M riscv64/riscv64asm/testdata/gnucases.txt
        • M riscv64/riscv64asm/testdata/plan9cases.txt
        • M riscv64/riscv64spec/spec.go
          Change size: S
          Delta: 5 files changed, 19 insertions(+), 2 deletions(-)
          Branch: refs/heads/master
          Submit Requirements:
          • requirement satisfiedCode-Review: +1 by Michael Pratt, +1 by Dmitri Shuralyov, +2 by Mark Ryan, +2 by Meng Zhuo, +2 by Joel Sing
          • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
          Open in Gerrit
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: merged
          Gerrit-Project: arch
          Gerrit-Branch: master
          Gerrit-Change-Id: I4c10d7ed0819cd08b9f58165796a6d0c331f88f4
          Gerrit-Change-Number: 707015
          Gerrit-PatchSet: 12
          open
          diffy
          satisfied_requirement
          Reply all
          Reply to author
          Forward
          0 new messages