summaryrefslogtreecommitdiff
path: root/vendor/golang.org
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org')
-rw-r--r--vendor/golang.org/x/arch/AUTHORS3
-rw-r--r--vendor/golang.org/x/arch/CONTRIBUTORS3
-rw-r--r--vendor/golang.org/x/arch/x86/x86asm/decode.go2
-rw-r--r--vendor/golang.org/x/arch/x86/x86asm/plan9x.go4
-rw-r--r--vendor/golang.org/x/arch/x86/x86asm/tables.go3
5 files changed, 6 insertions, 9 deletions
diff --git a/vendor/golang.org/x/arch/AUTHORS b/vendor/golang.org/x/arch/AUTHORS
deleted file mode 100644
index 2b00ddba0..000000000
--- a/vendor/golang.org/x/arch/AUTHORS
+++ /dev/null
@@ -1,3 +0,0 @@
-# This source code refers to The Go Authors for copyright purposes.
-# The master list of authors is in the main Go distribution,
-# visible at https://tip.golang.org/AUTHORS.
diff --git a/vendor/golang.org/x/arch/CONTRIBUTORS b/vendor/golang.org/x/arch/CONTRIBUTORS
deleted file mode 100644
index 1fbd3e976..000000000
--- a/vendor/golang.org/x/arch/CONTRIBUTORS
+++ /dev/null
@@ -1,3 +0,0 @@
-# This source code was written by the Go contributors.
-# The master list of contributors is in the main Go distribution,
-# visible at https://tip.golang.org/CONTRIBUTORS.
diff --git a/vendor/golang.org/x/arch/x86/x86asm/decode.go b/vendor/golang.org/x/arch/x86/x86asm/decode.go
index 8c984970b..059b73d3f 100644
--- a/vendor/golang.org/x/arch/x86/x86asm/decode.go
+++ b/vendor/golang.org/x/arch/x86/x86asm/decode.go
@@ -1550,7 +1550,7 @@ var addr16 = [8]Mem{
{Base: BX},
}
-// baseReg returns the base register for a given register size in bits.
+// baseRegForBits returns the base register for a given register size in bits.
func baseRegForBits(bits int) Reg {
switch bits {
case 8:
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:
diff --git a/vendor/golang.org/x/arch/x86/x86asm/tables.go b/vendor/golang.org/x/arch/x86/x86asm/tables.go
index af3fb73c5..6f57c70bf 100644
--- a/vendor/golang.org/x/arch/x86/x86asm/tables.go
+++ b/vendor/golang.org/x/arch/x86/x86asm/tables.go
@@ -1,5 +1,4 @@
-// DO NOT EDIT
-// generated by: x86map -fmt=decoder ../x86.csv
+// Code generated by x86map -fmt=decoder x86.csv DO NOT EDIT.
package x86asm