-
Notifications
You must be signed in to change notification settings - Fork 91
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
PCALIGN seems to be missing #419
Comments
Thanks for the issue. Do you think it would be sufficient to just append this to the instruction set (probably with the |
https://github.com/golang/go/blob/go1.21.6/src/cmd/asm/internal/asm/asm.go#L336 There are other pseudo-ops defined here, for example At the moment I can't think of a reason not to just treat this as another ISA instruction. Of course it's still a goal for |
Oh. I think I was thrown off by the fact that the PR #420 adds it but is failing assembler tests on Go 1.20 and 1.21 for this reason. This is another use case for |
You can use go1.22rc1 for testing that. As for the implementation, I don't have that much experience with avo to have an opinion on how to implement it. For now I did this in my own code:
|
For sure. The problem is the test I have that validates the avo instruction database by assembling a generated file with one example of every instruction form. This test runs in CI with the installed Go version, so at the moment with Go 1.20 and 1.21. Therefore the tests fail when I add the PCALIGN instruction. The fix would be to either install a pinned Go version for the purpose of that test. Or alternatively, implement some form of #84 and store the version required for each instruction, which would then allow me to limit which instructions appear in the assembler test file. |
Go will soon support PCALIGN pseudo instruction for amd64.
https://tip.golang.org/doc/asm#special-instructions
The text was updated successfully, but these errors were encountered: