go/src/cmd/asm
Joel Sing d8e052667f cmd/internal/obj/riscv: use signed immediates for U-instructions
On RISCV64, the U-instructions (AUIPC and LUI) take 20 bits, append 12 bits
of zeros and sign extend to 64-bits. As such, the 20 bit immediate value is
signed not unsigned.

Updates #27532

Change-Id: I725215a1dc500106dbfdc0a4425f3c0b2a6f411e
Reviewed-on: https://go-review.googlesource.com/c/go/+/216257
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2020-01-28 02:39:28 +00:00
..
internal cmd/internal/obj/riscv: use signed immediates for U-instructions 2020-01-28 02:39:28 +00:00
doc.go
main.go [dev.link] cmd/compile, cmd/asm: assign index to symbols 2019-10-02 19:07:17 +00:00