-
Notifications
You must be signed in to change notification settings - Fork 33
[Homework 7] Floating point calling convention. #209
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
Comments
(continuing the discussion of #211 2.)
|
Please refer to this link: https://godbolt.org/z/mkZvYQ
As can be seen in the above link, So, please implement FYI, for the final project, |
RISC-V has multiple calling conventions regarding floating-point numbers: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/44f98e0fd8104def00f2a5a8d94b23dd647d18fb/riscv-elf.md#named-abis Conventions differ on the use of floating-point registers. In particular, the It seems clang uses The specification for the assignments was confusing, so I'd like to declare:
|
Great! I will keep open this issue for other students. |
I believe this issue is now sufficiently advertised :) Thank you all for making such a wonderful discussion thread. |
GotBolt maps floating point arguments to integer argument registers (a0-a7).
However, there are separate floating point registers (fa0-fa7).
RISC-V ABI also uses them:
So, which one should we use?
The text was updated successfully, but these errors were encountered: