RE: [PATCH] i386: Add _MM_FROUND_TIES_TO_EVEN to smmintrin.h

2024-07-22 Thread Paul Caprioli
: Paul Caprioli Sent: Saturday, July 20 2024, 12:01 pm To: gcc-patches@gcc.gnu.org Subject: [PATCH] i386: Add _MM_FROUND_TIES_TO_EVEN to smmintrin.h Intrinsics such as `_mm512_add_round_ps` take a rounding mode argument to specify the floating point rounding mode. This and similar instructions do

[PATCH] i386: Add _MM_FROUND_TIES_TO_EVEN to smmintrin.h

2024-07-20 Thread Paul Caprioli
Intrinsics such as `_mm512_add_round_ps` take a rounding mode argument to specify the floating point rounding mode. This and similar instructions do NOT round their result to an integer. Thus it is inappropriate for user code to specify the existing `_MM_FROUND_TO_NEAREST_INT` when desiring to r