]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: refactor some encoding functions for load/store with immediate offset on...
authorfanzha02 <fannie.zhang@arm.com>
Fri, 16 Oct 2020 10:35:30 +0000 (18:35 +0800)
committerfannie zhang <Fannie.Zhang@arm.com>
Thu, 29 Oct 2020 01:50:09 +0000 (01:50 +0000)
commit308ec220a2e55e0948505881b051cbefa05cf696
tree6ecf3e599c117d41517cbcd01339de55dc634d8f
parentd8044a6744f9570e964c6e35e12827473ff12cde
cmd/asm: refactor some encoding functions for load/store with immediate offset on arm64

Some of the current functions for encoding load/store with
immediate offset instructions, like opstr12(), opstr9(),
opldr12(), opldr9() and opldrpp(), etc., they have the same
code, so this patch refactors them and merges them into two
functions opstr() and opldr().

Change-Id: I60367f8b720b77c7ebe6d66905a950dcf7701836
Reviewed-on: https://go-review.googlesource.com/c/go/+/263479
Run-TryBot: fannie zhang <Fannie.Zhang@arm.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Trust: fannie zhang <Fannie.Zhang@arm.com>
src/cmd/internal/obj/arm64/asm7.go