]> Cypherpunks repositories - gostls13.git/commit
cmd/asm,cmd/internal/obj/riscv: provide branch pseudo-instructions
authorJoel Sing <joel@sing.id.au>
Mon, 30 Mar 2020 14:57:52 +0000 (01:57 +1100)
committerJoel Sing <joel@sing.id.au>
Tue, 31 Mar 2020 13:13:58 +0000 (13:13 +0000)
commita3d8c210ad7d6dea9996200fc1596c310b9775b5
tree4a3f01a4f23931cdaece31bba4dcd9ca65013673
parentd98023ebb5c2db9a445699b690f2cf6fd77f4b7e
cmd/asm,cmd/internal/obj/riscv: provide branch pseudo-instructions

Implement various branch pseudo-instructions for riscv64. These make it easier
to read/write assembly and will also make it easier for the compiler to generate
optimised code.

Change-Id: Ic31a7748c0e1495522ebecf34b440842b8d12c04
Reviewed-on: https://go-review.googlesource.com/c/go/+/226397
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/arch/arch.go
src/cmd/asm/internal/asm/testdata/riscvenc.s
src/cmd/internal/obj/riscv/anames.go
src/cmd/internal/obj/riscv/asm_test.go
src/cmd/internal/obj/riscv/cpu.go
src/cmd/internal/obj/riscv/obj.go
src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.go [new file with mode: 0644]
src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.s [new file with mode: 0644]