]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/internal/obj/riscv: improve instruction validation
authorJoel Sing <joel@sing.id.au>
Mon, 13 Sep 2021 16:21:22 +0000 (02:21 +1000)
committerJoel Sing <joel@sing.id.au>
Fri, 17 Sep 2021 08:20:48 +0000 (08:20 +0000)
commit6602c86a38ff0d8889257e908489162de38ebbd8
tree41d48cd7d93d4ce930883717de2573cd2fcfb7d4
parent14e812bfc575400a02e9e7536344a3f78a6cba08
cmd/internal/obj/riscv: improve instruction validation

Ensure that rs2 is none for various instruction encodings. Fix a couple of cases
where it should have been but is not.

Change-Id: I9f8211a0257e49643dbbc89e158e048050ebe6f0
Reviewed-on: https://go-review.googlesource.com/c/go/+/349649
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/internal/obj/riscv/obj.go