]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv,cmd/link: shorten the riscv64 call sequence
authorJoel Sing <joel@sing.id.au>
Wed, 29 Jan 2020 09:14:18 +0000 (20:14 +1100)
committerJoel Sing <joel@sing.id.au>
Wed, 29 Jan 2020 16:35:37 +0000 (16:35 +0000)
commita50c3ffbd47e3dcfc1b5bd2a2d19d55731481eaa
treea6b487eada71261849e490fe00194e712d4e6baa
parent2e4f490b31272a2df73d4ba23aad7f5a8ca49a2f
cmd/internal/obj/riscv,cmd/link: shorten the riscv64 call sequence

Now that the other dependent offset has been identified, we can remove the
unnecessary ADDI instruction from the riscv64 call sequence (reducing it
to AUIPC+JALR, rather than the previous AUIPC+ADDI+JALR).

Change-Id: I348c4efb686f9f71ed1dd1d25fb9142a41230b0d
Reviewed-on: https://go-review.googlesource.com/c/go/+/216798
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/internal/obj/riscv/obj.go
src/cmd/link/internal/ld/pcln.go
src/runtime/asm_riscv64.s