]> Cypherpunks repositories - gostls13.git/commit
cmd/asm,cmd/internal/obj/riscv: add more error tests for riscv64 assembly
authorJoel Sing <joel@sing.id.au>
Sat, 21 Aug 2021 08:40:20 +0000 (18:40 +1000)
committerJoel Sing <joel@sing.id.au>
Wed, 1 Sep 2021 06:18:05 +0000 (06:18 +0000)
commit5a687eeaf186dd109e53860db15f8465b0456fc0
treee49a2f85dd7d1adca52eddfe5197b98b211ff9f2
parentfaf9c7d8fe9885a8d96de389f16bc4fdadb067a2
cmd/asm,cmd/internal/obj/riscv: add more error tests for riscv64 assembly

Add more error tests for riscv64 assembly. Also avoid a panic when one of
these error conditions is hit.

Change-Id: If5d913894facbd67f7d014eab745da77c8c66ab0
Reviewed-on: https://go-review.googlesource.com/c/go/+/344228
Trust: Joel Sing <joel@sing.id.au>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Meng Zhuo <mzh@golangcn.org>
src/cmd/asm/internal/asm/testdata/riscv64error.s
src/cmd/internal/obj/riscv/obj.go