[DSLX] In struct parametrics parametric argument types other than u32
should be allowed, including s32
#1841
Labels
dslx
DSLX (domain specific language) implementation / front-end
Describe the bug
This does not work:
because BINARY_EXPONENT is s32. It works if I change it to u32. I really do want a signed value, so this is not acceptable.
Error message, referring to BINARY_EXPONENT when I create
a
:Note that other parametric argument types which are useful to implementers are also disallowed, e.g.
bool
would have been useful to me to make a signed magnitude workaround:but the above is also not allowed.
To Reproduce
Use the code above, try to compile.
Expected behavior
That I can make BINARY_EXPONENT signed without issues.
This would be very handy for making an open source fixed point library.
The text was updated successfully, but these errors were encountered: