]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: adjust riscv64 test data to avoid churn
authorJoel Sing <joel@sing.id.au>
Thu, 19 Aug 2021 04:06:55 +0000 (04:06 +0000)
committerJoel Sing <joel@sing.id.au>
Wed, 1 Sep 2021 07:10:24 +0000 (07:10 +0000)
commit717f337d1d68299ca55a96e9fbb5168e8f7788f4
tree8829714f14615b1b37b75421a59c8fceac4e818d
parent5a687eeaf186dd109e53860db15f8465b0456fc0
cmd/asm: adjust riscv64 test data to avoid churn

Rather than jumping and branching to a label (the offset for which changes
when instructions are added or removed), use PC-relative offsets. This
reduces unnecessary churn in the instruction encodings.

Change-Id: I6816ce939eeabdf828039f59f4f29260eb1ac8da
Reviewed-on: https://go-review.googlesource.com/c/go/+/344449
Trust: Joel Sing <joel@sing.id.au>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Munday <mike.munday@lowrisc.org>
src/cmd/asm/internal/asm/testdata/riscv64.s