aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2021-04-08 16:47:13 -0400
committerCherry Zhang <cherryyz@google.com>2021-04-09 00:09:47 +0000
commit19034fa855783d78cc4c40d3708bcc01a8900a1d (patch)
tree71fa5b73c518c6b95216d482e7144d0995ed152b /src
parent5811605df9011ae415b25be70045ed7a302a5e37 (diff)
downloadgo-19034fa855783d78cc4c40d3708bcc01a8900a1d.tar.xz
cmd/objdump: update test with register ABI
With register ABI, the disassembly of the function may not contain a "movq" instruction (which used to be e.g. storing arguments to stack). Look for "jmp" instruction instead. This is also in consistent with the test for Go assembly syntax. Change-Id: Ifc9e48bbc4f85c4e4aace5981b3a0f8ae925f6d6 Reviewed-on: https://go-review.googlesource.com/c/go/+/308652 Trust: Cherry Zhang <cherryyz@google.com> Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/objdump/objdump_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/objdump/objdump_test.go b/src/cmd/objdump/objdump_test.go
index 1748e13a53..ac184441ea 100644
--- a/src/cmd/objdump/objdump_test.go
+++ b/src/cmd/objdump/objdump_test.go
@@ -64,13 +64,13 @@ var x86Need = []string{ // for both 386 and AMD64
}
var amd64GnuNeed = []string{
- "movq",
+ "jmp",
"callq",
"cmpb",
}
var i386GnuNeed = []string{
- "mov",
+ "jmp",
"call",
"cmp",
}