This patch adds the standard macro definition _MM_FROUND_TO_NEAREST_TIES_EVEN
for specifying the IEEE rounding to nearest attribute `roundTiesToEven` for
AVX512 floating-point intrinsics.
More information can be found in the original email to this list
https://gcc.gnu.org/pipermail/gcc-patches/2024-July/657957.html
and in the discussion
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117163
Regards,
Paul
From d01a657a6bc138cfbf1953bbbf2976a0eed4c5c7 Mon Sep 17 00:00:00 2001
From: Paul Caprioli <[email protected]>
Date: Sat, 20 Jul 2024 11:31:06 -0700
Subject: [PATCH] Add _MM_FROUND_TO_NEAREST_TIES_EVEN to smmintrin.h
---
gcc/config/i386/smmintrin.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/config/i386/smmintrin.h b/gcc/config/i386/smmintrin.h
index c2d82773247..1b732433453 100644
--- a/gcc/config/i386/smmintrin.h
+++ b/gcc/config/i386/smmintrin.h
@@ -39,6 +39,7 @@
/* Rounding mode macros. */
#define _MM_FROUND_TO_NEAREST_INT 0x00
+#define _MM_FROUND_TO_NEAREST_TIES_EVEN 0x00
#define _MM_FROUND_TO_NEG_INF 0x01
#define _MM_FROUND_TO_POS_INF 0x02
#define _MM_FROUND_TO_ZERO 0x03
--
2.39.5