-
Notifications
You must be signed in to change notification settings - Fork 1k
Add Zvfbfa, Zvfofp8min, Zvfofp4min support #2101
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
Conversation
|
That’s off topic, but it would be nice if additions to the SoftFloat library could be pushed upstream to the official Berkeley SoftFloat repo, so we have a common place to share improvements, report bugs, and keep things consistent. By the way, there are already functions (most of the bf16 stuff) that exist only in Spike and aren’t part of the official repo. |
|
@nadime15 indeed, that is a topic for another day. (It isn't sustainable for RVIA to keep modifying softfloat at ucb-bar; we'll need to fork it to riscv-software-src. I will take that responsibility, but it'll be a few months before I work on that.) |
4e8633b to
8d3e470
Compare
aswaterman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @drom, this looks good overall. I'll merge after my minor comments are addressed.
1207f90 to
a7de9c6
Compare
aswaterman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's getting pretty close. I think we can merge it once my remaining open comments are addressed.
c67d924 to
15c8ef7
Compare
|
@mslijepc I think we might accidentally be relying on Zvfh being present when Zvfbfa is present. My concern stems from this: Don't we need to modify that to something like |
2e9556c to
dc43be0
Compare
|
@aswaterman I agree. I was thinking to use and maybe there and also in other cases you mentioned. What do you think? Feel free to propose better naming for macros |
|
@aswaterman @youngar I addressed all the comments. Could you please double check if it's all good in PR (except conflicts we have)? |
This looks right, but I don't see it in the PR. |
To clarify, these do make sense, but only if they are used in the right places, e.g. inside the CHECK32 macros, not in the global scope of an instruction. |
5117164 to
aedbea5
Compare
aswaterman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR implements Zvfbfa, Zvfofp8min, Zvfofp4min extensions according to spec proposals: