Cranelift: fcvt_to_{u,s}int{,_sat}
not implemented for i128
on x64
#4899
Labels
bug
Incorrect behavior in the current implementation that needs fixing
cranelift:area:x64
Issues related to x64 codegen
cranelift
Issues related to the Cranelift code generator
👋 Hey,
This came up when trying to fuzz #4884
.clif
Test CaseSo this is a bunch of separate cases, I can split it into multiple issues if you'd like:
fcvt_to_uint
fcvt_to_sint
fcvt_to_uint_sat
fcvt_to_sint_sat
Steps to Reproduce
clif-util ./the-above.clif
Expected Results
The above tests to pass.
Actual Results
This fails in the first function but all the functions in all test cases crash with a similar error.
Versions and Environment
Cranelift version or commit: main
Operating system: Windows
Architecture: x64
Extra Info
cg_clif
works around this by directly emitting a libcall: https://github.com/bjorn3/rustc_codegen_cranelift/blob/fa7660440b2581c4c57d896d50e76da1515de6df/src/cast.rs#L87-L113The text was updated successfully, but these errors were encountered: