You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: