simde
simde copied to clipboard
re-implement some of the FCVTZS/FCVTMS/FCVTPS/FCVTNS
Recent Qemu confirms the different behavior that was seen on mac M1 and a Pixel 4a 5g phone versus our previous implementation.
To fix this:
- Revert https://github.com/simd-everywhere/simde/commit/339ffe4ca89bf6698cab0c8420fe813a4e293aec
- Adjust the test vectors to match the hardware behavior (or that of a recent Qemu version)
- Adjust the software implementations of those intrinsics to match the new test vectors
Note that Arm defines Round towards Zero (RZ) mode
as
Means that results are rounded to the nearest representable number that is no greater in magnitude than the unrounded result.
@yyctw Is this something you have time to do?