diff options
| author | Joel Sing <joel@sing.id.au> | 2020-01-23 03:38:31 +1100 |
|---|---|---|
| committer | Joel Sing <joel@sing.id.au> | 2020-01-28 02:39:28 +0000 |
| commit | d8e052667f6bb93eb444cc372d03a866973d4c1b (patch) | |
| tree | b10a7f27b7095cffe33af8166e19ac3ed762e3b0 /src/runtime/mpallocbits.go | |
| parent | 8f14f33f96d35416786d65664ca731ae75d1c733 (diff) | |
| download | go-d8e052667f6bb93eb444cc372d03a866973d4c1b.tar.xz | |
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>
Diffstat (limited to 'src/runtime/mpallocbits.go')
0 files changed, 0 insertions, 0 deletions
