commit | 377592649dd6920047f1b547f6554cd6c9b90442 | [log] [tgz] |
---|---|---|
author | fanzha02 <fannie.zhang@arm.com> | Wed Jan 08 11:14:57 2020 +0000 |
committer | fannie zhang <Fannie.Zhang@arm.com> | Mon Dec 07 01:58:49 2020 +0000 |
tree | c6b0fad77187e3bc5a6b2adcc343c06fafb35a83 | |
parent | 52c3e6f60cffa0133a3f9b2fc7f6862504a6cba0 [diff] |
arm64/arm64asm: fix the wrong shifted register offset go assembler syntax The current Go assembler encodes "MOVB R4, (R2)(R6)" as "44682638" and encodes "MOVB R4, (R2)(R6<<0)" as "44782638", but the current Go disassembler returns the same Go syntax "MOVB R4, (R3)(R6) for the above two binarys. To match the assembler, this patch fixes the wrong shifted register go syntax. The fixed Go syntax: strb w4, [x2, x6, lsl #0] -> MOVB R4, (R2)(R6<<0) strb w4, [x2, x6] -> MOVB R4, (R2)(R6) Change-Id: I60d4cdf1c04511891268efe510a18291fe0c0da6 Reviewed-on: https://go-review.googlesource.com/c/arch/+/214358 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>
This repository holds machine architecture information used by the Go toolchain. The parts needed in the main Go repository are copied in.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the arch repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/arch:” in the subject line, so it is easy to find.