]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: factor out splitting of 24 bit unsigned scaled immediates
authorJoel Sing <joel@sing.id.au>
Fri, 28 Apr 2023 20:07:42 +0000 (06:07 +1000)
committerJoel Sing <joel@sing.id.au>
Wed, 26 Jul 2023 12:39:29 +0000 (12:39 +0000)
commitaf297c35555d75e43bcd58f868534bdd022767bd
tree1ed36d96bed4a3f48502afdb0e39a909779800b5
parent2a1ba6ebb12994f4df15236f03eb63116b4a0c4d
cmd/internal/obj/arm64: factor out splitting of 24 bit unsigned scaled immediates

Rather than duplicating this code, factor it out into a function and
add test coverage.

Change-Id: I37ce568ded4659d98a4ff1361520c5fb2207e947
Reviewed-on: https://go-review.googlesource.com/c/go/+/512537
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/asm/internal/asm/testdata/arm64.s
src/cmd/internal/obj/arm64/asm7.go
src/cmd/internal/obj/arm64/asm_arm64_test.go