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

cmd/asm: ppc64x branch instructions recognize CR0 but not CR1-7 #17408

Closed
laboger opened this issue Oct 11, 2016 · 1 comment
Closed

cmd/asm: ppc64x branch instructions recognize CR0 but not CR1-7 #17408

laboger opened this issue Oct 11, 2016 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@laboger
Copy link
Contributor

laboger commented Oct 11, 2016

Please answer these questions before submitting your issue. Thanks!

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

tip

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

Ubuntu 16.04

What did you do?

Tried to use go asm for ppc64x with a branch instruction based on a CR other than CR0.

What did you expect to see?

Correct generated code.

What did you see instead?

Incorrect generated code. The following is an example of an instruction that is accepted by the golang assembler without error but the generated ppc64x instruction encodes CR0 instead of CR2.

BNE CR2,label

Other instructions like CMP which can set the CR will correctly accept other CRs and generate the correct ppc64x asm for them, e.g. CMP R2, R3, CR4.

@quentinmit quentinmit added this to the Go1.8 milestone Oct 11, 2016
@quentinmit quentinmit added the NeedsFix The path to resolution is known, but the work has not been done. label Oct 11, 2016
@gopherbot
Copy link

CL https://golang.org/cl/30930 mentions this issue.

@golang golang locked and limited conversation to collaborators Oct 12, 2017
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

3 participants