]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: factor out code generation for addition of 12 bit immediates
authorJoel Sing <joel@sing.id.au>
Sun, 8 Jan 2023 17:21:37 +0000 (04:21 +1100)
committerJoel Sing <joel@sing.id.au>
Fri, 24 Feb 2023 17:53:36 +0000 (17:53 +0000)
commite7c7f3326335649d6fcae8cba297808fc60ed388
treef9d3c2b5ca3c8083c177c4419fb0495acd3f3ab1
parentf76fc28c6b31f28783b94596d6328450202c903a
cmd/internal/obj/arm64: factor out code generation for addition of 12 bit immediates

Factor out and simplify code that generates the addition of a 12 bit immediate
(the addition of a negative value is still handled via subtraction). This also
fixes the mishandling of the case where v is 0.

Change-Id: I6040f33d2fec87b772272531b3bf02390ae7f200
Reviewed-on: https://go-review.googlesource.com/c/go/+/461141
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Eric Fang <eric.fang@arm.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/arm64/asm7.go