alexcrichton requested afonso360 for a review on PR #7340.
alexcrichton opened PR #7340 from alexcrichton:rv64-fflags to bytecodealliance:main:
This commit refactors the
fcvt_to_{s,u}intconversions in the riscv64
backend to build on the work in https://github.com/bytecodealliance/wasmtime/pull/7327. These two instructions currently
have multiple branches in them to check for traps when the float is out
of bounds. This is additionally signaled via thefflagsCSR however so
this is an attempt to trim some branches/constants/etc and instead check
thefflagsCSR after the operation. This requires clearing the CSR
just beforehand, however. This additionally doesn't work for 8/16-bit
types because the hardware doesn't set flags for those.
alexcrichton closed without merge PR #7340.
Last updated: Dec 13 2025 at 21:03 UTC