Stream: git-wasmtime

Topic: wasmtime / issue #13078 riscv64: The vxrm and vxsat regis...


view this post on Zulip Wasmtime GitHub notifications bot (Apr 13 2026 at 19:40):

alexcrichton opened issue #13078:

The initial implementation of simd for riscv64, https://github.com/bytecodealliance/wasmtime/issues/6118, states:

There is additional state that I'm ignoring here:

Not sure if we need these, but we can handle them in the same manner as vtype, and insert their respective mode switching instructions in the same pass.

According to ABI documentation for riscv64 it looks like both of these registers are not preserved around function calls. Cranelift's implementation of avg_round and sqmul_round_sat both rely on this (riscv64 instructions vssrl and vsmul). This seems to work in QEMU because nothing else in Wasmtime modifies the register, but this likely isn't a fully-safe assumption.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 13 2026 at 19:40):

alexcrichton added the cranelift:area:riscv64 label to Issue #13078.


Last updated: May 03 2026 at 22:13 UTC