-
Notifications
You must be signed in to change notification settings - Fork 88
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
Add more details in the specification #287
Conversation
`_Float16` is defined as type for the IEEE 16-bit floating-point type. The type was previously `float16_t` and our intent was to try define it under a RISC-V header. However this is not needed since now both the two main upstream compiler (LLVM, GCC) supports this. Signed-off-by: eop Chen <[email protected]>
Using `long` introduces ambiguity to rely on the architecture specified (rv32/rv64). This is unnecessary since it is likely to be impossible for a vector length to exceed the value range of an `int`. Signed-off-by: eop Chen <[email protected]>
Signed-off-by: eop Chen <[email protected]>
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.
LGTM. Thanks @eopXD !
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.
LGTM
@topperc recently noticed that return value for the
FP16 is not relevant to those two issues, and the change made in this PR was not the agreed-upon solution to those issues. (I don't know if we had even come to a consensus: I had argued for a different solution altogether.) |
While cleaning up the issue threads, I found some more details we need to have in the specification.
This PR:
=
) in the C language" under the programming note section of the specfloat16_t
with_Float16
that is now supported by both LLVM and GCC. This keeps us away from the need to define our own type. (Resolves Use fixed-width integer type instead of long? #31, and alongside also resolves Should vcpop.m return type be size_t? #166.vlenb
utility functionnew_vl
argument in fault-only-first load intrinsics