]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv: handle call, jmp and branch
authorJoel Sing <joel@sing.id.au>
Sun, 3 Nov 2019 15:31:37 +0000 (02:31 +1100)
committerJoel Sing <joel@sing.id.au>
Tue, 24 Dec 2019 03:42:15 +0000 (03:42 +0000)
commit7cab55dfd38ca24c327a648907d6befbf828447e
treefc68d31e9a949eac9bb764529a35335a42c7a3a0
parent372efbbf3170ccf260186118cd3acf7f617055ae
cmd/internal/obj/riscv: handle call, jmp and branch

Also provide REG_LR to more clearly define the link register.

Based on the riscv-go port.

Updates #27532

Change-Id: I0805f373682f93b3918a01c21d4ef34eb3817c75
Reviewed-on: https://go-review.googlesource.com/c/go/+/204627
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/asm_test.go [new file with mode: 0644]
src/cmd/internal/obj/riscv/cpu.go
src/cmd/internal/obj/riscv/obj.go