]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv: improve large branch/call/jump tests
authorJoel Sing <joel@sing.id.au>
Tue, 18 Nov 2025 07:35:45 +0000 (18:35 +1100)
committerJoel Sing <joel@sing.id.au>
Sat, 22 Nov 2025 06:38:02 +0000 (22:38 -0800)
commit3c26aef8fba0ef1f4d26d802ba037b43671924e9
treef4a0e3be9c3606d75052be6bdd4f7a85c813e7a7
parent31aa9f800bc8d4089e05b8726b599abe04a486a3
cmd/internal/obj/riscv: improve large branch/call/jump tests

Rework these tests such that they are built on all architectures and
actually executed when run on riscv64. This increases the likelihood
of catching code generation issues, especially those that impact
relocations. Also ensure that the generated assembly includes the
instruction sequence that is expected for the large branch/call/jump.

Change-Id: I15c40a439dd1d0d4ed189ab81697e93d82c4ef4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/721621
Reviewed-by: Mark Ryan <markdryan@rivosinc.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
src/cmd/internal/obj/riscv/asm_test.go