]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv: simplify validation and encoding of raw instructions
authorJoel Sing <joel@sing.id.au>
Tue, 9 Sep 2025 15:09:41 +0000 (01:09 +1000)
committerJoel Sing <joel@sing.id.au>
Thu, 23 Oct 2025 12:38:59 +0000 (05:38 -0700)
commite5688d0bddb0196b7f057bcae8baf8521c571119
tree33ef01bf126be151575ebea1fcb8763f7a8bae13
parent77fc27972a2333c1e3a43cfa406276775ac0c579
cmd/internal/obj/riscv: simplify validation and encoding of raw instructions

Use wantImmU/immU rather than handrolling the same code. This also corrects
the validation output - add tests to ensure this is the case.

Change-Id: Id48f459c7c0de09ddde7a10506f66a3a269f325f
Reviewed-on: https://go-review.googlesource.com/c/go/+/702396
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/asm/internal/asm/testdata/riscv64validation.s
src/cmd/internal/obj/riscv/obj.go