]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: refactor the extended/shifted register encoding to the backend
authorfanzha02 <fannie.zhang@arm.com>
Sun, 8 Apr 2018 12:36:30 +0000 (12:36 +0000)
committerCherry Zhang <cherryyz@google.com>
Wed, 18 Apr 2018 19:19:57 +0000 (19:19 +0000)
commit236c567ba9b7767b6f1ebe32eb2d8f0018de8780
tree061ed698bc0424bc2f52c43b75c367e591ac1af8
parent50ccbe1fc2737f6ea2642aee1c99c9ad141258b2
cmd/internal/obj/arm64: refactor the extended/shifted register encoding to the backend

The current code encodes the register and the shift/extension into a.Offset
field and this is done in the frontend. The CL refactors it to have the
frontend record the register/shift/extension information in a.Reg or a.Index
and leave the encoding stuff for the backend.

Change-Id: I600f456aec95377b7b79cd58e94afcb30aca5d19
Reviewed-on: https://go-review.googlesource.com/106815
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/arch/arm64.go
src/cmd/internal/obj/arm64/asm7.go
src/cmd/internal/obj/util.go