DGriffin91 opened issue #3370:
Using cranelift 0.76, the following results in this error message: "'Unsupported type for imin instruction: i64', [...]\cranelift-codegen-0.76.0\src\isa\x64\lower.rs:2353:17"
function u0:0() -> f64 windows_fastcall { block0: v0 = f64const 0.0 v1 = iconst.i64 1 v2 = iconst.i64 2 v3 = imin v1, v2 v4 = fcvt_from_sint.f64 v3 return v4 }
Am I using imin incorrectly?
cfallin commented on issue #3370:
Currently the
imin
instruction is only supported for vector types, not scalars. It's a part of a larger issue in which our backends support the particular combinations of instructions and types that are generated by our Wasm frontend, but still have implementation gaps for the fully general opcode x type matrix. Sorry about that! I'd be happy to point out the place where this would be implemented if you're interested in possibly contributing a patch, and in the meantime I'll go ahead and rename this issue to track the missing impl.Thanks again for the report!
Last updated: Dec 23 2024 at 12:05 UTC