]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv: require memory targets for load and store instructions
authorJoel Sing <joel@sing.id.au>
Tue, 24 Sep 2019 17:42:45 +0000 (03:42 +1000)
committerJoel Sing <joel@sing.id.au>
Thu, 26 Sep 2019 17:56:30 +0000 (17:56 +0000)
commit08165932f77aacf82a1e41138e7650e5992b98f7
tree48d0d189eb84e2101b8468ac3352e1bcda9702d5
parentcb418dd0d16ef0db58fef1dbc1f97afbaf480cd5
cmd/internal/obj/riscv: require memory targets for load and store instructions

This allows for `LD 4(X5), X6' rather than `LD $4, X5, X6'. Similar for other
load and store instructions. It is worth noting that none of these are likely
to be used directly once the MOV pseudo-instructions are implemented.

Updates #27532

Change-Id: Ie043c2dedd2cdaceb258b27976cfb3f74aa1cc1d
Reviewed-on: https://go-review.googlesource.com/c/go/+/196842
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/asm/testdata/riscvenc.s
src/cmd/internal/obj/riscv/obj.go