aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mpallocbits.go
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2020-01-23 03:38:31 +1100
committerJoel Sing <joel@sing.id.au>2020-01-28 02:39:28 +0000
commitd8e052667f6bb93eb444cc372d03a866973d4c1b (patch)
treeb10a7f27b7095cffe33af8166e19ac3ed762e3b0 /src/runtime/mpallocbits.go
parent8f14f33f96d35416786d65664ca731ae75d1c733 (diff)
downloadgo-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