-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Does cranelift support the f16const in riscv64? #9508
Comments
Interesting -- it seems we should, since it's in a test and tests are passing on CI. A few things to verify:
|
It seems that my version of wasmtime is wrong, I will close this issue. |
@cfallin Here is my CLIF input file. However, I still can't run this file by using the following command line:
The error is :
And I try to run the f16const.clif, it also outputs the similar error:
The commit version of my wasmtime is:
|
You are probably missing |
FP16 on the RISC-V backend is only supported with the You also have to specify support for the I should also note, there are some operations that we don't yet support for FP16. |
For cg_clif f16const and f16 arguments and return values will need to work unconditionally. Math on f16 can be lowered to libcalls just fine when |
I'm not entirely sure how it's currently implemented, but I think that should work. We already save and restore the entire registers, instead of just the used portion. I haven't tested that yet though. |
@abc767234318 I'm not entirely sure why the I also tried to run |
Where can I find the set of IR instructions supported by each cpu architecture? I also found that x86 cpu don't seem to support the iconst.i128 instruction. The line 13 is
|
|
To add a bit more: we don't support |
I constructed a clif file that contains the f16const instruction, and I got an error when I used the following command.
The error is:
In addition, I found a test file for the f16const instruction in the cranelift/filetests/filetests/isa/riscv64/f16const.clif.
The text was updated successfully, but these errors were encountered: