Open jnk0le opened 12 months ago
probably highly problematic, replaces only 2 instructions
fcvt.w.s a1, fa3 tio.max HRTIM1_TIMA_CMP1xR, a1, zero
or
fcvt.wu.s a1, fa3 tio.mv HRTIM1_TIMA_CMP1xR, a1
negative float to unsigned is UB in C/C++ though. Saturation breaks on some archs (e.g. x86)
probably highly problematic, replaces only 2 instructions