summaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/arch/x86/x86asm/plan9x.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-06-01 22:20:16 +0100
committerLibravatar GitHub <noreply@github.com>2023-06-01 22:20:16 +0100
commit55aacaf4b07c1921061245cbaa3d307e97cf3c29 (patch)
treed969c5d9728566de1e794e19c5b19d3b660f790e /vendor/golang.org/x/arch/x86/x86asm/plan9x.go
parent[chore/frontend] refactor header templating, add apple-touch-icon (#1850) (diff)
downloadgotosocial-55aacaf4b07c1921061245cbaa3d307e97cf3c29.tar.xz
[chore]: Bump github.com/gin-gonic/gin from 1.9.0 to 1.9.1 (#1855)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/golang.org/x/arch/x86/x86asm/plan9x.go')
-rw-r--r--vendor/golang.org/x/arch/x86/x86asm/plan9x.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/golang.org/x/arch/x86/x86asm/plan9x.go b/vendor/golang.org/x/arch/x86/x86asm/plan9x.go
index 59d8f9775..de417946a 100644
--- a/vendor/golang.org/x/arch/x86/x86asm/plan9x.go
+++ b/vendor/golang.org/x/arch/x86/x86asm/plan9x.go
@@ -66,6 +66,10 @@ func GoSyntax(inst Inst, pc uint64, symname SymLookup) string {
s := inst.DataSize
if inst.MemBytes != 0 {
s = inst.MemBytes * 8
+ } else if inst.Args[1] == nil { // look for register-only 64-bit instruction, like PUSHQ AX
+ if r, ok := inst.Args[0].(Reg); ok && RAX <= r && r <= R15 {
+ s = 64
+ }
}
switch s {
case 8: