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}int
conversions 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 thefflags
CSR however so
this is an attempt to trim some branches/constants/etc and instead check
thefflags
CSR 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: Nov 22 2024 at 16:03 UTC