-
Notifications
You must be signed in to change notification settings - Fork 314
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
Unexpected jalpseudo/jalrpseudo instructions #286
Comments
That's on purpose. If you check the ASM Manual (the exact links are on PR #278) that's how the pseudo-instructions are specified. I added the "pseudo" naming for those two variables so that the re-definition would not break any output already being used downstream. Moreover, I believe the reason for x1 being hardcoded there is that x1 actually is the Return Address specified on RISC-V ABI, but I guess @aswaterman is the best person to answer to that. |
Right. |
I understand why x1 is hardcoded here, however it seems to make little sense to provide an instruction called I guess we'll just have to work around this by disabling the inclusion of pseudo-instructions for Go. |
This repo being a source of information, I believe it should be as complete and possible and therefore hold the most information possible. However, I see how the changes may affect downstream application, and now that you're switching that I agree that passing pseudo as a flag may work best. @IIITM-Jay Technically, it would also solve #289 |
Commit 13be4ee added additional pseudo instructions, including these two lines in
rv_i
:These result in
./parse.py -go
generatingAJALPSEUDO
andAJALRPSEUDO
instructions, which are unexpected. It seems rather strange to alias an instruction to itself - the only difference between these and the original definitions appears to be that the register is hardcoded toX1
. Have these been misnamed or added in error?The text was updated successfully, but these errors were encountered: