Cranelift: fcvt_from_{u,s}int
not implemented for i128
on x64
#4900
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 CaseSteps 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
Unlike with
fcvt_to
these seem to be implemented fori8
andi16
.cg_clif
works around this by emitting a libcall: https://github.com/bjorn3/rustc_codegen_cranelift/blob/fa7660440b2581c4c57d896d50e76da1515de6df/src/cast.rs#L50-L85The text was updated successfully, but these errors were encountered: