-
Notifications
You must be signed in to change notification settings - Fork 158
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
Alignment of scalar values should be specified #19
Comments
Thanks for going through the documentation, it's great to make sure the LLVM and GCC stuff match before people start really using our stuff. Looks like we're 64-bit aligned for uint64_t on rv32g. @sorear, can you document it?
|
Thanks Palmer, it was actually double fp I was referring to, though I would guess these are 64-bit aligned on RV32 as well (can't ssh into my machine with riscv-gcc to verify right now). |
doubles would definitely want to be 64-bit aligned, since there's a fld instruction even on RV32D. |
The calling convention description is incomplete without specifying the alignment of scalar values. Of course the alignment is usually sizeof(ty), but some 32-bit ABIs allow doubles to be 4-byte aligned.
The text was updated successfully, but these errors were encountered: