bytecodealliance / bytecodealliance/wasmtime

x64: Improve codegen of the relaxed f32-to-u32 instructions

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

Description

The `i32x4.relaxed_trunc_f32x4_u` and `i32x4.relaxed_trunc_f64x2_u_zero` instructions currently unconditionally delegate to the `i32x4.trunc_sat_f32x4_u`-style instructions. For the x64 backend specifically these are not the optimal lowerings of these instructions and it would be best to fill these out.

The [upstream issue](https://github.com/WebAssembly/relaxed-simd/issues/21) has some more information and some examples at lowerings. I suspect that new lowerings for these instructions will want to consult v8/spidermonkey and their current status as well.

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.