Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/arch/arm64/arm64asm: tests fail with new binutils #27754

Closed
mwhudson opened this issue Sep 19, 2018 · 4 comments
Closed

x/arch/arm64/arm64asm: tests fail with new binutils #27754

mwhudson opened this issue Sep 19, 2018 · 4 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@mwhudson
Copy link
Contributor

What version of Go are you using (go version)?

1.10 but it doesn't matter.

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

Ubuntu 18.10 on arm64.

What did you do?

$ go test golang.org/x/arch/arm64/arm64asm

What did you expect to see?

tests passing

What did you see instead?

--- FAIL: TestObjdumpARM64TestDecodeGNUSyntaxdata (0.48s)
	ext_test.go:197: decode(9f3003d5) = "dsb #0x00", 4, want "ssbb", 4
		
	ext_test.go:197: decode(9f3403d5) = "dsb #0x04", 4, want "pssbb", 4
		
	ext_test.go:203: 4651 test cases, 933 expected mismatches, 2 failures; 19612 cases/second
	ext_test.go:204: decoder coverage: 96.4%;
	ext_test.go:203: 4651 test cases, 0 expected mismatches, 0 failures; 20158 cases/second
	ext_test.go:204: decoder coverage: 96.4%;
--- FAIL: TestObjdumpARM64TestDecodeGoSyntaxdata (0.47s)
	ext_test.go:197: decode(9f3003d5) = "dsb #0x00", 4, want "ssbb", 4
		
	ext_test.go:197: decode(9f3403d5) = "dsb #0x04", 4, want "pssbb", 4
		
	ext_test.go:203: 4564 test cases, 964 expected mismatches, 2 failures; 19893 cases/second
	ext_test.go:204: decoder coverage: 96.4%;
	ext_test.go:203: 4564 test cases, 0 expected mismatches, 0 failures; 20033 cases/second
	ext_test.go:204: decoder coverage: 96.4%;
FAIL
FAIL	golang.org/x/arch/arm64/arm64asm	5.308s
@gopherbot gopherbot added this to the Unreleased milestone Sep 19, 2018
@mwhudson
Copy link
Contributor Author

I think what's going on here is that the new binutils in this version of Ubuntu supports some new mnemonics. I presume the fix is to adjust allowedMismatchObjdump to accept both forms, I'll submit a CL to implement this soon but I'm a bit busy today.

@cherrymui
Copy link
Member

Yeah, I think this is the cause. Is there some flags to objdump to make it prefer old instruction names? If so, we probably want to use that so the test is more tolerable to new objdump changes.

@bcmills bcmills added the NeedsFix The path to resolution is known, but the work has not been done. label Sep 19, 2018
@mwhudson
Copy link
Contributor Author

You can pass -M no-aliases to, I think, suppress all mnemonics but that's probably going too far.

@gopherbot
Copy link

Change https://golang.org/cl/136455 mentions this issue: arm64/arm64asm: recognise new ssbb/pssbb mnemonics from objdump

hnakamur pushed a commit to hnakamur/golang-deb that referenced this issue Feb 26, 2019
Fixes golang/go#27754

Change-Id: I8fcc3bc3c718cf0d93afbd1d383df48316b522d4
Reviewed-on: https://go-review.googlesource.com/136455
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
hnakamur pushed a commit to hnakamur/golang-deb that referenced this issue Mar 15, 2019
Fixes golang/go#27754

Change-Id: I8fcc3bc3c718cf0d93afbd1d383df48316b522d4
Reviewed-on: https://go-review.googlesource.com/136455
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
hnakamur pushed a commit to hnakamur/golang-deb that referenced this issue Apr 12, 2019
Fixes golang/go#27754

Change-Id: I8fcc3bc3c718cf0d93afbd1d383df48316b522d4
Reviewed-on: https://go-review.googlesource.com/136455
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
hnakamur pushed a commit to hnakamur/golang-deb that referenced this issue May 7, 2019
Fixes golang/go#27754

Change-Id: I8fcc3bc3c718cf0d93afbd1d383df48316b522d4
Reviewed-on: https://go-review.googlesource.com/136455
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
hnakamur pushed a commit to hnakamur/golang-deb that referenced this issue Aug 16, 2019
Fixes golang/go#27754

Change-Id: I8fcc3bc3c718cf0d93afbd1d383df48316b522d4
Reviewed-on: https://go-review.googlesource.com/136455
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
@golang golang locked and limited conversation to collaborators Sep 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

4 participants