bytecodealliance / bytecodealliance/wasmtime

Cranelift: support scalar types for min/max instructions

Open
#3,370 5 comments 0 reactions 0 assignees View on GitHub
cranelift cranelift:area:aarch64 cranelift:area:x64
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.