]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/objdump: update test with register ABI
authorCherry Zhang <cherryyz@google.com>
Thu, 8 Apr 2021 20:47:13 +0000 (16:47 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 9 Apr 2021 00:09:47 +0000 (00:09 +0000)
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>
src/cmd/objdump/objdump_test.go

index 1748e13a537806bfa725ef54b792e2e95b2b0e30..ac184441eaca429c18d434a8f0fd1e77ad0a21bb 100644 (file)
@@ -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",
 }