]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AVX10.2 ymm rounding: Support vgetexpp{s,d,h} and vgetmantp{s,d,h} intrins
authorHu, Lin1 <lin1.hu@intel.com>
Mon, 19 Aug 2024 02:09:11 +0000 (10:09 +0800)
committerHaochen Jiang <haochen.jiang@intel.com>
Mon, 19 Aug 2024 02:16:48 +0000 (10:16 +0800)
gcc/ChangeLog:

* config/i386/avx10_2roundingintrin.h: New intrins.
* config/i386/i386-builtin-types.def: Add new DEF_FUNCTION_TYPE.
* config/i386/i386-builtin.def (BDESC): Add new builtins.
* config/i386/i386-expand.cc (ix86_expand_round_builtin): Handle
V8SF_FTYPE_V8SF_V8SF_UQI_INT, V4DF_FTYPE_V4DF_V4DF_UQI_INT,
V16HF_FTYPE_V16HF_V16HF_UHI_INT, V16HF_FTYPE_V16HF_INT_V16HF_UHI_INT,
V4DF_FTYPE_V4DF_INT_V4DF_UQI_INT, V8SF_FTYPE_V8SF_INT_V8SF_UQI_INT.
* config/i386/sse.md:
(<avx512>_getexp<mode><mask_name><round_saeonly_name>):
Add condition check.
(<avx512>_getmant<mode><mask_name><round_saeonly_name>):
Ditto.

gcc/testsuite/ChangeLog:

* gcc.target/i386/avx-1.c: Add new builtin test.
* gcc.target/i386/sse-13.c: Ditto.
* gcc.target/i386/sse-14.c: Ditto.
* gcc.target/i386/sse-22.c: Add new macro test.
* gcc.target/i386/sse-23.c: Ditto.
* gcc.target/i386/avx10_2-rounding-3.c: Add test.

gcc/config/i386/avx10_2roundingintrin.h
gcc/config/i386/i386-builtin-types.def
gcc/config/i386/i386-builtin.def
gcc/config/i386/i386-expand.cc
gcc/config/i386/sse.md
gcc/testsuite/gcc.target/i386/avx-1.c
gcc/testsuite/gcc.target/i386/avx10_2-rounding-3.c
gcc/testsuite/gcc.target/i386/sse-13.c
gcc/testsuite/gcc.target/i386/sse-14.c
gcc/testsuite/gcc.target/i386/sse-22.c
gcc/testsuite/gcc.target/i386/sse-23.c

index afc1220fea420fb6cc3b85a36cc6f765580f44a1..07729a6cc04f1aa2071ac627ebfb6d2761e7e667 100644 (file)
@@ -3021,6 +3021,217 @@ _mm256_maskz_fnmsub_round_ps (__mmask8 __U, __m256 __A, __m256 __B,
                                                           (__mmask8) __U,
                                                           __R);
 }
+
+extern __inline __m256d
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_getexp_round_pd (__m256d __A, const int __R)
+{
+  return
+    (__m256d) __builtin_ia32_getexppd256_mask_round ((__v4df) __A,
+                                                    (__v4df)
+                                                    _mm256_undefined_pd (),
+                                                    (__mmask8) -1,
+                                                    __R);
+}
+
+extern __inline __m256d
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_mask_getexp_round_pd (__m256d __W, __mmask8 __U, __m256d __A,
+                            const int __R)
+{
+  return (__m256d) __builtin_ia32_getexppd256_mask_round ((__v4df) __A,
+                                                         (__v4df) __W,
+                                                         (__mmask8) __U,
+                                                         __R);
+}
+
+extern __inline __m256d
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_maskz_getexp_round_pd (__mmask8 __U, __m256d __A, const int __R)
+{
+  return (__m256d) __builtin_ia32_getexppd256_mask_round ((__v4df) __A,
+                                                         (__v4df)
+                                                         _mm256_setzero_pd (),
+                                                         (__mmask8) __U,
+                                                         __R);
+}
+
+extern __inline __m256h
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_getexp_round_ph (__m256h __A, const int __R)
+{
+  return (__m256h) __builtin_ia32_getexpph256_mask_round ((__v16hf) __A,
+                                                         (__v16hf)
+                                                         _mm256_setzero_ph (),
+                                                         (__mmask16) -1,
+                                                         __R);
+}
+
+extern __inline __m256h
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_mask_getexp_round_ph (__m256h __W, __mmask16 __U, __m256h __A,
+                            const int __R)
+{
+  return (__m256h) __builtin_ia32_getexpph256_mask_round ((__v16hf) __A,
+                                                         (__v16hf) __W,
+                                                         (__mmask16) __U,
+                                                         __R);
+}
+
+extern __inline __m256h
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_maskz_getexp_round_ph (__mmask16 __U, __m256h __A, const int __R)
+{
+  return (__m256h) __builtin_ia32_getexpph256_mask_round ((__v16hf) __A,
+                                                         (__v16hf)
+                                                         _mm256_setzero_ph (),
+                                                         (__mmask16) __U,
+                                                         __R);
+}
+
+extern __inline __m256
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_getexp_round_ps (__m256 __A, const int __R)
+{
+  return (__m256) __builtin_ia32_getexpps256_mask_round ((__v8sf) __A,
+                                                        (__v8sf)
+                                                        _mm256_undefined_ps (),
+                                                        (__mmask8) -1,
+                                                        __R);
+}
+
+extern __inline __m256
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_mask_getexp_round_ps (__m256 __W, __mmask8 __U, __m256 __A,
+                            const int __R)
+{
+  return (__m256) __builtin_ia32_getexpps256_mask_round ((__v8sf) __A,
+                                                        (__v8sf) __W,
+                                                        (__mmask8) __U,
+                                                        __R);
+}
+
+extern __inline __m256
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_maskz_getexp_round_ps (__mmask8 __U, __m256 __A, const int __R)
+{
+  return (__m256) __builtin_ia32_getexpps256_mask_round ((__v8sf) __A,
+                                                        (__v8sf)
+                                                        _mm256_setzero_ps (),
+                                                        (__mmask8) __U,
+                                                        __R);
+}
+
+extern __inline __m256d
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_getmant_round_pd (__m256d __A, _MM_MANTISSA_NORM_ENUM __B,
+                        _MM_MANTISSA_SIGN_ENUM __C, const int __R)
+{
+  return
+    (__m256d) __builtin_ia32_getmantpd256_mask_round ((__v4df) __A,
+                                                     (__C << 2) | __B,
+                                                     _mm256_undefined_pd (),
+                                                     (__mmask8) -1, __R);
+}
+
+extern __inline __m256d
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_mask_getmant_round_pd (__m256d __W, __mmask8 __U, __m256d __A,
+                             _MM_MANTISSA_NORM_ENUM __B,
+                             _MM_MANTISSA_SIGN_ENUM __C, const int __R)
+{
+  return (__m256d) __builtin_ia32_getmantpd256_mask_round ((__v4df) __A,
+                                                          (__C << 2) | __B,
+                                                          (__v4df) __W, __U,
+                                                          __R);
+}
+
+extern __inline __m256d
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_maskz_getmant_round_pd (__mmask8 __U, __m256d __A,
+                              _MM_MANTISSA_NORM_ENUM __B,
+                              _MM_MANTISSA_SIGN_ENUM __C, const int __R)
+{
+  return (__m256d) __builtin_ia32_getmantpd256_mask_round ((__v4df) __A,
+                                                          (__C << 2) | __B,
+                                                          (__v4df)
+                                                          _mm256_setzero_pd (),
+                                                          __U, __R);
+}
+
+extern __inline __m256h
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_getmant_round_ph (__m256h __A, _MM_MANTISSA_NORM_ENUM __B,
+                        _MM_MANTISSA_SIGN_ENUM __C, const int __R)
+{
+  return
+    (__m256h) __builtin_ia32_getmantph256_mask_round ((__v16hf) __A,
+                                                     (__C << 2) | __B,
+                                                     _mm256_undefined_ph (),
+                                                     (__mmask16) -1, __R);
+}
+
+extern __inline __m256h
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_mask_getmant_round_ph (__m256h __W, __mmask16 __U, __m256h __A,
+                             _MM_MANTISSA_NORM_ENUM __B,
+                             _MM_MANTISSA_SIGN_ENUM __C, const int __R)
+{
+  return (__m256h) __builtin_ia32_getmantph256_mask_round ((__v16hf) __A,
+                                                          (__C << 2) | __B,
+                                                          (__v16hf) __W, __U,
+                                                          __R);
+}
+
+extern __inline __m256h
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_maskz_getmant_round_ph (__mmask8 __U, __m256h __A,
+                              _MM_MANTISSA_NORM_ENUM __B,
+                              _MM_MANTISSA_SIGN_ENUM __C, const int __R)
+{
+  return (__m256h) __builtin_ia32_getmantph256_mask_round ((__v16hf) __A,
+                                                          (__C << 2) | __B,
+                                                          (__v16hf)
+                                                          _mm256_setzero_ph (),
+                                                          __U, __R);
+}
+
+extern __inline __m256
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_getmant_round_ps (__m256 __A, _MM_MANTISSA_NORM_ENUM __B,
+                        _MM_MANTISSA_SIGN_ENUM __C, const int __R)
+{
+  return
+    (__m256) __builtin_ia32_getmantps256_mask_round ((__v8sf) __A,
+                                                    (__C << 2) | __B,
+                                                    _mm256_undefined_ps (),
+                                                    (__mmask8) -1, __R);
+}
+
+extern __inline __m256
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_mask_getmant_round_ps (__m256 __W, __mmask8 __U, __m256 __A,
+                             _MM_MANTISSA_NORM_ENUM __B,
+                             _MM_MANTISSA_SIGN_ENUM __C, const int __R)
+{
+  return (__m256) __builtin_ia32_getmantps256_mask_round ((__v8sf) __A,
+                                                         (__C << 2) | __B,
+                                                         (__v8sf) __W, __U,
+                                                         __R);
+}
+
+extern __inline __m256
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm256_maskz_getmant_round_ps (__mmask8 __U, __m256 __A,
+                              _MM_MANTISSA_NORM_ENUM __B,
+                              _MM_MANTISSA_SIGN_ENUM __C, const int __R)
+{
+  return (__m256) __builtin_ia32_getmantps256_mask_round ((__v8sf) __A,
+                                                         (__C << 2) | __B,
+                                                         (__v8sf)
+                                                         _mm256_setzero_ps (),
+                                                         __U, __R);
+}
 #else
 #define _mm256_add_round_pd(A, B, R) \
   ((__m256d) __builtin_ia32_addpd256_mask_round ((__v4df) (A), \
@@ -4509,6 +4720,136 @@ _mm256_maskz_fnmsub_round_ps (__mmask8 __U, __m256 __A, __m256 __B,
 
 #define _mm256_maskz_fnmsub_round_ps(U, A, B, D, R)   \
   (__m256)__builtin_ia32_vfnmsubps256_maskz_round (A, B, D, U, R)
+
+#define _mm256_getexp_round_pd(A, R) \
+  ((__m256d) __builtin_ia32_getexppd256_mask_round ((__v4df) (A), \
+                                                   (__v4df) \
+                                                   (_mm256_undefined_pd ()), \
+                                                   (__mmask8) (-1), \
+                                                   (R)))
+
+#define _mm256_mask_getexp_round_pd(W, U, A, R) \
+  ((__m256d) __builtin_ia32_getexppd256_mask_round ((__v4df) (A), \
+                                                   (__v4df) (W), \
+                                                   (__mmask8) (U), \
+                                                   (R)))
+
+#define _mm256_maskz_getexp_round_pd(U, A, R) \
+  ((__m256d) __builtin_ia32_getexppd256_mask_round ((__v4df) (A), \
+                                                   (__v4df) \
+                                                   (_mm256_setzero_pd ()), \
+                                                   (__mmask8) (U), \
+                                                   (R)))
+
+#define _mm256_getexp_round_ph(A, R)\
+  ((__m256h) __builtin_ia32_getexpph256_mask_round ((__v16hf) (A), \
+                                                   (__v16hf) \
+                                                   (_mm256_setzero_ph ()), \
+                                                   (__mmask16) (-1), \
+                                                   (R)))
+
+#define _mm256_mask_getexp_round_ph(W, U, A, R)\
+  ((__m256h) __builtin_ia32_getexpph256_mask_round ((__v16hf) (A), \
+                                                   (__v16hf) (W), \
+                                                   (__mmask16) (U), \
+                                                   (R)))
+
+#define _mm256_maskz_getexp_round_ph(U, A, R)\
+  ((__m256h) __builtin_ia32_getexpph256_mask_round ((__v16hf) (A), \
+                                                   (__v16hf) \
+                                                   (_mm256_setzero_ph ()), \
+                                                   (__mmask16) (U), \
+                                                   (R)))
+
+#define _mm256_getexp_round_ps(A, R)\
+  ((__m256) __builtin_ia32_getexpps256_mask_round ((__v8sf) (A), \
+                                                  (__v8sf) \
+                                                  (_mm256_undefined_ps ()), \
+                                                  (__mmask8) (-1), \
+                                                  (R)))
+
+#define _mm256_mask_getexp_round_ps(W, U, A, R)\
+  ((__m256) __builtin_ia32_getexpps256_mask_round ((__v8sf) (A), \
+                                                  (__v8sf) (W), \
+                                                  (__mmask8) (U), \
+                                                  (R)))
+
+#define _mm256_maskz_getexp_round_ps(U, A, R)\
+  ((__m256) __builtin_ia32_getexpps256_mask_round ((__v8sf) (A), \
+                                                  (__v8sf) \
+                                                  (_mm256_setzero_ps ()), \
+                                                  (__mmask8) (U), \
+                                                  (R)))
+
+#define _mm256_getmant_round_pd(A, B, C, R) \
+  ((__m256d)__builtin_ia32_getmantpd256_mask_round ((__v4df) (__m256d) (A), \
+                                                   (int) (((C) << 2) | (B)), \
+                                                   (__v4df) (__m256d) \
+                                                   _mm256_undefined_pd (), \
+                                                   (__mmask8)-1, \
+                                                   (R)))
+
+#define _mm256_mask_getmant_round_pd(W, U, A, B, C, R) \
+  ((__m256d)__builtin_ia32_getmantpd256_mask_round ((__v4df) (__m256d) (A),    \
+                                                   (int) (((C) << 2) | (B)), \
+                                                   (__v4df) (__m256d) (W),    \
+                                                   (__mmask8) (U), \
+                                                   (R)))
+
+#define _mm256_maskz_getmant_round_pd(U, A, B, C, R) \
+  ((__m256d)__builtin_ia32_getmantpd256_mask_round ((__v4df) (__m256d) (A), \
+                                                   (int) (((C) << 2) | (B)), \
+                                                   (__v4df) (__m256d) \
+                                                   _mm256_setzero_pd (), \
+                                                   (__mmask8) (U), \
+                                                   (R)))
+
+
+#define _mm256_getmant_round_ph(A, B, C, R) \
+  ((__m256h)__builtin_ia32_getmantph256_mask_round ((__v16hf) (__m256h) (A), \
+                                                   (int) (((C)<<2) | (B)), \
+                                                   (__v16hf) (__m256h) \
+                                                   _mm256_undefined_ph (), \
+                                                   (__mmask16)-1, \
+                                                   (R)))
+
+#define _mm256_mask_getmant_round_ph(W, U, A, B, C, R) \
+  ((__m256h)__builtin_ia32_getmantph256_mask_round ((__v16hf) (__m256h) (A), \
+                                                   (int) (((C)<<2) | (B)), \
+                                                   (__v16hf) (__m256h) (W), \
+                                                   (__mmask16) (U), \
+                                                   (R)))
+
+#define _mm256_maskz_getmant_round_ph(U, A, B, C, R) \
+  ((__m256h)__builtin_ia32_getmantph256_mask_round ((__v16hf) (__m256h) (A), \
+                                                   (int) (((C)<<2) | (B)), \
+                                                   (__v16hf) (__m256h) \
+                                                   _mm256_setzero_ph (), \
+                                                   (__mmask16) (U), \
+                                                   (R)))
+
+#define _mm256_getmant_round_ps(A, B, C, R) \
+  ((__m256)__builtin_ia32_getmantps256_mask_round ((__v8sf) (__m256) (A), \
+                                                  (int) (((C)<<2) | (B)), \
+                                                  (__v8sf) (__m256) \
+                                                  _mm256_undefined_ps (), \
+                                                  (__mmask8)-1, \
+                                                  (R)))
+
+#define _mm256_mask_getmant_round_ps(W, U, A, B, C, R) \
+  ((__m256)__builtin_ia32_getmantps256_mask_round ((__v8sf) (__m256) (A), \
+                                                  (int) (((C)<<2) | (B)), \
+                                                  (__v8sf) (__m256) (W), \
+                                                  (__mmask8) (U), \
+                                                  (R)))
+
+#define _mm256_maskz_getmant_round_ps(U, A, B, C, R) \
+  ((__m256)__builtin_ia32_getmantps256_mask_round ((__v8sf) (__m256) (A), \
+                                                  (int) (((C)<<2) | (B)), \
+                                                  (__v8sf) (__m256) \
+                                                  _mm256_setzero_ps (), \
+                                                  (__mmask8) (U), \
+                                                  (R)))
 #endif
 
 #define _mm256_cmul_round_pch(A, B, R) _mm256_fcmul_round_pch ((A), (B), (R))
index fc5c65e8b0546e9fbe5a7ea1c51eaf0f3fb0c85d..738cb786ff63a78565b8cb4124ff5e44140606fd 100644 (file)
@@ -1445,3 +1445,9 @@ DEF_FUNCTION_TYPE (V16HF, V16HF, V16HF, V16HF, UQI, INT)
 DEF_FUNCTION_TYPE (V4DF, V4DF, V4DF, V4DI, INT, UQI, INT)
 DEF_FUNCTION_TYPE (V8SF, V8SF, V8SF, V8SI, INT, UQI, INT)
 DEF_FUNCTION_TYPE (V16HF, V16HF, V16HF, INT)
+DEF_FUNCTION_TYPE (V4DF, V4DF, V4DF, UQI, INT)
+DEF_FUNCTION_TYPE (V16HF, V16HF, V16HF, UHI, INT)
+DEF_FUNCTION_TYPE (V8SF, V8SF, V8SF, UQI, INT)
+DEF_FUNCTION_TYPE (V4DF, V4DF, INT, V4DF, UQI, INT)
+DEF_FUNCTION_TYPE (V16HF, V16HF, INT, V16HF, UHI, INT)
+DEF_FUNCTION_TYPE (V8SF, V8SF, INT, V8SF, UQI, INT)
index 74a8c606b2f7a6e489c897de98b9493c0aeebe7a..d53805314728435dcb2e1b732b753e5c4f8837fa 100644 (file)
@@ -3445,6 +3445,12 @@ BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_avx512vl_fnmsub_v16hf_maskz_rou
 BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_avx512vl_fnmsub_v8sf_mask_round, "__builtin_ia32_vfnmsubps256_mask_round", IX86_BUILTIN_VFNMSUBPS256_MASK_ROUND, UNKNOWN, (int) V8SF_FTYPE_V8SF_V8SF_V8SF_UQI_INT)
 BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_avx512vl_fnmsub_v8sf_mask3_round, "__builtin_ia32_vfnmsubps256_mask3_round", IX86_BUILTIN_VFNMSUBPS512_MASK3_ROUND, UNKNOWN, (int) V8SF_FTYPE_V8SF_V8SF_V8SF_UQI_INT)
 BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_avx512vl_fnmsub_v8sf_maskz_round, "__builtin_ia32_vfnmsubps256_maskz_round", IX86_BUILTIN_VFNMSUBPS256_MASKZ_ROUND, UNKNOWN, (int) V8SF_FTYPE_V8SF_V8SF_V8SF_UQI_INT)
+BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_avx512vl_getexpv4df_mask_round, "__builtin_ia32_getexppd256_mask_round", IX86_BUILTIN_VGETEXPPD256_MASK_ROUND, UNKNOWN, (int) V4DF_FTYPE_V4DF_V4DF_UQI_INT)
+BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_avx512vl_getexpv16hf_mask_round, "__builtin_ia32_getexpph256_mask_round", IX86_BUILTIN_VGETEXPPH256_MASK_ROUND, UNKNOWN, (int) V16HF_FTYPE_V16HF_V16HF_UHI_INT)
+BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_avx512vl_getexpv8sf_mask_round, "__builtin_ia32_getexpps256_mask_round", IX86_BUILTIN_VGETEXPPS256_MASK_ROUND, UNKNOWN, (int) V8SF_FTYPE_V8SF_V8SF_UQI_INT)
+BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_avx512vl_getmantv4df_mask_round, "__builtin_ia32_getmantpd256_mask_round", IX86_BUILTIN_VGETMANTPD256_MASK_ROUND, UNKNOWN, (int) V4DF_FTYPE_V4DF_INT_V4DF_UQI_INT)
+BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_avx512vl_getmantv16hf_mask_round, "__builtin_ia32_getmantph256_mask_round", IX86_BUILTIN_VGETMANTPH256_MASK_ROUND, UNKNOWN, (int) V16HF_FTYPE_V16HF_INT_V16HF_UHI_INT)
+BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_avx512vl_getmantv8sf_mask_round, "__builtin_ia32_getmantps256_mask_round", IX86_BUILTIN_VGETMANTPS256_MASK_ROUND, UNKNOWN, (int) V8SF_FTYPE_V8SF_INT_V8SF_UQI_INT)
 
 BDESC_END (ROUND_ARGS, MULTI_ARG)
 
index 251b4434c46855b60e4eec7a7b7a163bd42ab487..a8851ffd566fc8dae6d87c1a538acdd2e9bcf50c 100644 (file)
@@ -12404,10 +12404,12 @@ ix86_expand_round_builtin (const struct builtin_description *d,
     case V16HI_FTYPE_V16HF_V16HI_UHI_INT:
     case V8DF_FTYPE_V8SF_V8DF_QI_INT:
     case V16SF_FTYPE_V16HI_V16SF_HI_INT:
+    case V8SF_FTYPE_V8SF_V8SF_UQI_INT:
     case V8SF_FTYPE_V8SI_V8SF_UQI_INT:
     case V8SF_FTYPE_V8HF_V8SF_UQI_INT:
     case V8SI_FTYPE_V8SF_V8SI_UQI_INT:
     case V8SI_FTYPE_V8HF_V8SI_UQI_INT:
+    case V4DF_FTYPE_V4DF_V4DF_UQI_INT:
     case V4DF_FTYPE_V4DI_V4DF_UQI_INT:
     case V4DF_FTYPE_V4SF_V4DF_UQI_INT:
     case V4DF_FTYPE_V8HF_V4DF_UQI_INT:
@@ -12426,6 +12428,7 @@ ix86_expand_round_builtin (const struct builtin_description *d,
     case V8HF_FTYPE_V4DF_V8HF_UQI_INT:
     case V8HF_FTYPE_V4DI_V8HF_UQI_INT:
     case V16HF_FTYPE_V16SF_V16HF_UHI_INT:
+    case V16HF_FTYPE_V16HF_V16HF_UHI_INT:
     case V16HF_FTYPE_V16HI_V16HF_UHI_INT:
     case V8HF_FTYPE_V8HF_V8HF_V8HF_INT:
       nargs = 4;
@@ -12466,6 +12469,9 @@ ix86_expand_round_builtin (const struct builtin_description *d,
     case V8DF_FTYPE_V8DF_INT_V8DF_QI_INT:
     case V8DF_FTYPE_V8DF_INT_V8DF_UQI_INT:
     case V16SF_FTYPE_V16SF_INT_V16SF_UHI_INT:
+    case V16HF_FTYPE_V16HF_INT_V16HF_UHI_INT:
+    case V4DF_FTYPE_V4DF_INT_V4DF_UQI_INT:
+    case V8SF_FTYPE_V8SF_INT_V8SF_UQI_INT:
       nargs_constant = 4;
       nargs = 5;
       break;
index 0881a434b1569a942fe7ae4f90c9a80b014c83aa..61ec8ef234358624908d4aeb5f85eacdb35ea724 100644 (file)
   [(set (match_operand:VFH_AVX512VL 0 "register_operand" "=v")
         (unspec:VFH_AVX512VL [(match_operand:VFH_AVX512VL 1 "<round_saeonly_nimm_predicate>" "<round_saeonly_constraint>")]
                         UNSPEC_GETEXP))]
-   "TARGET_AVX512F"
+   "TARGET_AVX512F && <round_saeonly_mode_condition>"
    "vgetexp<ssemodesuffix>\t{<round_saeonly_mask_op2>%1, %0<mask_operand2>|%0<mask_operand2>, %1<round_saeonly_mask_op2>}";
     [(set_attr "prefix" "evex")
      (set_attr "mode" "<MODE>")])
          [(match_operand:VFH_AVX512VL 1 "nonimmediate_operand" "<round_saeonly_constraint>")
           (match_operand:SI 2 "const_0_to_15_operand")]
          UNSPEC_GETMANT))]
-  "TARGET_AVX512F"
+  "TARGET_AVX512F && <round_saeonly_mode_condition>"
 {
   if (TARGET_DEST_FALSE_DEP_FOR_GLC
       && <mask3_dest_false_dep_for_glc_cond>
index 00991c341eb56808331294b41e070d7886d96ef5..4ce009847dc2e8af8ba12695fa3dcc48790a0225 100644 (file)
 #define __builtin_ia32_vfnmsubps256_mask_round(A, B, C, D, E) __builtin_ia32_vfnmsubps256_mask_round(A, B, C, D, 8)
 #define __builtin_ia32_vfnmsubps256_mask3_round(A, B, C, D, E) __builtin_ia32_vfnmsubps256_mask3_round(A, B, C, D, 8)
 #define __builtin_ia32_vfnmsubps256_maskz_round(A, B, C, D, E) __builtin_ia32_vfnmsubps256_maskz_round(A, B, C, D, 8)
+#define __builtin_ia32_getexppd256_mask_round(A, B, C, D) __builtin_ia32_getexppd256_mask_round(A, B, C, 8)
+#define __builtin_ia32_getexpph256_mask_round(A, B, C, D) __builtin_ia32_getexpph256_mask_round(A, B, C, 8)
+#define __builtin_ia32_getexpps256_mask_round(A, B, C, D) __builtin_ia32_getexpps256_mask_round(A, B, C, 8)
+#define __builtin_ia32_getmantpd256_mask_round(A, F, C, D, E) __builtin_ia32_getmantpd256_mask_round(A, 1, C, D, 8)
+#define __builtin_ia32_getmantph256_mask_round(A, F, C, D, E) __builtin_ia32_getmantph256_mask_round(A, 1, C, D, 8)
+#define __builtin_ia32_getmantps256_mask_round(A, F, C, D, E) __builtin_ia32_getmantps256_mask_round(A, 1, C, D, 8)
 
 #include <wmmintrin.h>
 #include <immintrin.h>
index 72a4b7f6dbb96c71811bc1c37ac38299f4eee359..3bed69ebeabd44760519a940fd5df637a8b65e42 100644 (file)
 /* { dg-final { scan-assembler-times "vfnmsub...ph\[ \\t\]+\[^\n\]*\{rd-sae\}\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1  }  } */
 /* { dg-final { scan-assembler-times "vfnmsub231ph\[ \\t\]+\[^\n\]*\{ru-sae\}\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1  }  } */
 /* { dg-final { scan-assembler-times "vfnmsub...ph\[ \\t\]+\[^\n\]*\{rz-sae\}\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1  }  } */
+/* { dg-final { scan-assembler-times "vgetexppd\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetexppd\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetexppd\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetexpph\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetexpph\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetexpph\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetexpps\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetexpps\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetexpps\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetmantpd\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetmantpd\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetmantpd\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetmantph\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetmantph\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetmantph\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetmantps\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetmantps\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)"  1 }  } */
+/* { dg-final { scan-assembler-times "vgetmantps\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)"  1 }  } */
 
 #include <immintrin.h>
 
@@ -322,3 +340,44 @@ avx10_2_test_15 (void)
   x = _mm256_mask3_fnmsub_round_ps (x, x, x, m8, _MM_FROUND_TO_POS_INF | _MM_FROUND_NO_EXC);
   x = _mm256_maskz_fnmsub_round_ps (m8, x, x, x, _MM_FROUND_TO_ZERO | _MM_FROUND_NO_EXC);
 }
+
+void extern
+avx10_2_test_16 (void)
+{
+  xd = _mm256_getexp_round_pd (xd, _MM_FROUND_NO_EXC);
+  xd = _mm256_mask_getexp_round_pd (xd, m8, xd, _MM_FROUND_NO_EXC);
+  xd = _mm256_maskz_getexp_round_pd (m8, xd, _MM_FROUND_NO_EXC);
+
+  xh = _mm256_getexp_round_ph (xh, _MM_FROUND_NO_EXC);
+  xh = _mm256_mask_getexp_round_ph (xh, m16, xh, _MM_FROUND_NO_EXC);
+  xh = _mm256_maskz_getexp_round_ph (m16, xh, _MM_FROUND_NO_EXC);
+
+  x = _mm256_getexp_round_ps (x, _MM_FROUND_NO_EXC);
+  x = _mm256_mask_getexp_round_ps (x, m8, x, _MM_FROUND_NO_EXC);
+  x = _mm256_maskz_getexp_round_ps (m8, x, _MM_FROUND_NO_EXC);
+}
+
+void extern
+avx10_2_test_17 (void)
+{
+  xd = _mm256_getmant_round_pd (xd, _MM_MANT_NORM_p75_1p5, _MM_MANT_SIGN_src,
+                               _MM_FROUND_NO_EXC);
+  xd = _mm256_mask_getmant_round_pd (xd, m8, xd, _MM_MANT_NORM_p75_1p5,
+                                    _MM_MANT_SIGN_src, _MM_FROUND_NO_EXC);
+  xd = _mm256_maskz_getmant_round_pd (m8, xd, _MM_MANT_NORM_p75_1p5,
+                                     _MM_MANT_SIGN_src, _MM_FROUND_NO_EXC);
+
+  xh = _mm256_getmant_round_ph (xh, _MM_MANT_NORM_p75_1p5, _MM_MANT_SIGN_src,
+                               _MM_FROUND_NO_EXC);
+  xh = _mm256_mask_getmant_round_ph (xh, m16, xh, _MM_MANT_NORM_p75_1p5,
+                                    _MM_MANT_SIGN_src, _MM_FROUND_NO_EXC);
+  xh = _mm256_maskz_getmant_round_ph (m16, xh, _MM_MANT_NORM_p75_1p5,
+                                     _MM_MANT_SIGN_src, _MM_FROUND_NO_EXC);
+
+  x = _mm256_getmant_round_ps (x, _MM_MANT_NORM_p75_1p5, _MM_MANT_SIGN_src,
+                              _MM_FROUND_NO_EXC);
+  x = _mm256_mask_getmant_round_ps (x, m8, x, _MM_MANT_NORM_p75_1p5,
+                                   _MM_MANT_SIGN_src, _MM_FROUND_NO_EXC);
+  x = _mm256_maskz_getmant_round_ps (m8, x, _MM_MANT_NORM_p75_1p5,
+                                    _MM_MANT_SIGN_src, _MM_FROUND_NO_EXC);
+}
index 4a44f642e9b910cc7bf7f9703ad18052dc5ae29c..04e0d59a09ca75e6ab3df4f1c8c24bbe29716838 100644 (file)
 #define __builtin_ia32_vfnmsubps256_mask_round(A, B, C, D, E) __builtin_ia32_vfnmsubps256_mask_round(A, B, C, D, 8)
 #define __builtin_ia32_vfnmsubps256_mask3_round(A, B, C, D, E) __builtin_ia32_vfnmsubps256_mask3_round(A, B, C, D, 8)
 #define __builtin_ia32_vfnmsubps256_maskz_round(A, B, C, D, E) __builtin_ia32_vfnmsubps256_maskz_round(A, B, C, D, 8)
+#define __builtin_ia32_getexppd256_mask_round(A, B, C, D) __builtin_ia32_getexppd256_mask_round(A, B, C, 8)
+#define __builtin_ia32_getexpph256_mask_round(A, B, C, D) __builtin_ia32_getexpph256_mask_round(A, B, C, 8)
+#define __builtin_ia32_getexpps256_mask_round(A, B, C, D) __builtin_ia32_getexpps256_mask_round(A, B, C, 8)
+#define __builtin_ia32_getmantpd256_mask_round(A, F, C, D, E) __builtin_ia32_getmantpd256_mask_round(A, 1, C, D, 8)
+#define __builtin_ia32_getmantph256_mask_round(A, F, C, D, E) __builtin_ia32_getmantph256_mask_round(A, 1, C, D, 8)
+#define __builtin_ia32_getmantps256_mask_round(A, F, C, D, E) __builtin_ia32_getmantps256_mask_round(A, 1, C, D, 8)
 
 #include <x86intrin.h>
index 5ea33429ef3f3619abb39d68b1ebd05e60484641..ceb3a65bf7fb12c41c00a45f706dd551e4096c83 100644 (file)
@@ -1066,6 +1066,12 @@ test_1 (_mm256_cvt_roundepu64_ph, __m128h, __m256i, 9)
 test_1 (_mm256_cvt_roundepu64_ps, __m128, __m256i, 9)
 test_1 (_mm256_cvt_roundepu16_ph, __m256h, __m256i, 8)
 test_1 (_mm256_cvt_roundepi16_ph, __m256h, __m256i, 8)
+test_1 (_mm256_getexp_round_pd, __m256d, __m256d, 8)
+test_1 (_mm256_getexp_round_ph, __m256h, __m256h, 8)
+test_1 (_mm256_getexp_round_ps, __m256, __m256, 8)
+test_1y (_mm256_getmant_round_ph, __m256h, __m256h, 1, 1, 8)
+test_1y (_mm256_getmant_round_ps, __m256, __m256, 1, 1, 8)
+test_1y (_mm256_getmant_round_pd, __m256d, __m256d, 1, 1, 8)
 test_2 (_mm256_add_round_pd, __m256d, __m256d, __m256d, 9)
 test_2 (_mm256_add_round_ph, __m256h, __m256h, __m256h, 8)
 test_2 (_mm256_add_round_ps, __m256, __m256, __m256, 9)
@@ -1120,9 +1126,15 @@ test_2 (_mm256_div_round_pd, __m256d, __m256d, __m256d, 9)
 test_2 (_mm256_div_round_ph, __m256h, __m256h, __m256h, 9)
 test_2 (_mm256_div_round_ps, __m256, __m256, __m256, 9)
 test_2 (_mm256_fcmul_round_pch, __m256h, __m256h, __m256h, 8)
+test_2 (_mm256_maskz_getexp_round_pd, __m256d, __mmask8, __m256d, 8)
+test_2 (_mm256_maskz_getexp_round_ph, __m256h, __mmask16, __m256h, 8)
+test_2 (_mm256_maskz_getexp_round_ps, __m256, __mmask8, __m256, 8)
 test_2x (_mm256_cmp_round_pd_mask, __mmask8, __m256d, __m256d, 1, 8)
 test_2x (_mm256_cmp_round_ph_mask, __mmask16, __m256h, __m256h, 1, 8)
 test_2x (_mm256_cmp_round_ps_mask, __mmask8, __m256, __m256, 1, 8)
+test_2y (_mm256_maskz_getmant_round_pd, __m256d, __mmask8, __m256d, 1, 1, 8)
+test_2y (_mm256_maskz_getmant_round_ph, __m256h, __mmask16, __m256h, 1, 1, 8)
+test_2y (_mm256_maskz_getmant_round_ps, __m256, __mmask8, __m256, 1, 1, 8)
 test_3 (_mm256_maskz_add_round_pd, __m256d, __mmask8, __m256d, __m256d, 9)
 test_3 (_mm256_maskz_add_round_ph, __m256h, __mmask16, __m256h, __m256h, 8)
 test_3 (_mm256_maskz_add_round_ps, __m256, __mmask8, __m256, __m256, 9)
@@ -1198,11 +1210,17 @@ test_3 (_mm256_fnmadd_round_ps, __m256, __m256, __m256, __m256, 9)
 test_3 (_mm256_fnmsub_round_pd, __m256d, __m256d, __m256d, __m256d, 9)
 test_3 (_mm256_fnmsub_round_ph, __m256h, __m256h, __m256h, __m256h, 9)
 test_3 (_mm256_fnmsub_round_ps, __m256, __m256, __m256, __m256, 9)
+test_3 (_mm256_mask_getexp_round_pd, __m256d, __m256d, __mmask8, __m256d, 8)
+test_3 (_mm256_mask_getexp_round_ph, __m256h, __m256h, __mmask16, __m256h, 8)
+test_3 (_mm256_mask_getexp_round_ps, __m256, __m256, __mmask8, __m256, 8)
 test_3x (_mm256_mask_cmp_round_pd_mask, __mmask8, __mmask8, __m256d, __m256d, 1, 8)
 test_3x (_mm256_mask_cmp_round_ph_mask, __mmask16, __mmask16, __m256h, __m256h, 1, 8)
 test_3x (_mm256_mask_cmp_round_ps_mask, __mmask8, __mmask8, __m256, __m256, 1, 8)
 test_3x (_mm256_fixupimm_round_pd, __m256d, __m256d, __m256d, __m256i, 3, 8)
 test_3x (_mm256_fixupimm_round_ps, __m256, __m256, __m256, __m256i, 3, 8)
+test_3y (_mm256_mask_getmant_round_pd, __m256d, __m256d, __mmask8, __m256d, 1, 1, 8)
+test_3y (_mm256_mask_getmant_round_ph, __m256h, __m256h, __mmask16, __m256h, 1, 1, 8)
+test_3y (_mm256_mask_getmant_round_ps, __m256, __m256, __mmask8, __m256, 1, 1, 8)
 test_4 (_mm256_mask_add_round_pd, __m256d, __m256d, __mmask8, __m256d, __m256d, 9)
 test_4 (_mm256_mask_add_round_ph, __m256h, __m256h, __mmask16, __m256h, __m256h, 8)
 test_4 (_mm256_mask_add_round_ps, __m256, __m256, __mmask8, __m256, __m256, 9)
index 44aa93d7d664dc64d9bec774cf74c863e33dcf8b..6457e750e3bc013cc378ddee6729de736a84602a 100644 (file)
@@ -1109,6 +1109,12 @@ test_1 (_mm256_cvt_roundepu64_ph, __m128h, __m256i, 9)
 test_1 (_mm256_cvt_roundepu64_ps, __m128, __m256i, 9)
 test_1 (_mm256_cvt_roundepu16_ph, __m256h, __m256i, 8)
 test_1 (_mm256_cvt_roundepi16_ph, __m256h, __m256i, 8)
+test_1 (_mm256_getexp_round_pd, __m256d, __m256d, 8)
+test_1 (_mm256_getexp_round_ph, __m256h, __m256h, 8)
+test_1 (_mm256_getexp_round_ps, __m256, __m256, 8)
+test_1y (_mm256_getmant_round_ph, __m256h, __m256h, 1, 1, 8)
+test_1y (_mm256_getmant_round_ps, __m256, __m256, 1, 1, 8)
+test_1y (_mm256_getmant_round_pd, __m256d, __m256d, 1, 1, 8)
 test_2 (_mm256_add_round_pd, __m256d, __m256d, __m256d, 9)
 test_2 (_mm256_add_round_ph, __m256h, __m256h, __m256h, 8)
 test_2 (_mm256_add_round_ps, __m256, __m256, __m256, 9)
@@ -1163,9 +1169,15 @@ test_2 (_mm256_div_round_pd, __m256d, __m256d, __m256d, 9)
 test_2 (_mm256_div_round_ph, __m256h, __m256h, __m256h, 9)
 test_2 (_mm256_div_round_ps, __m256, __m256, __m256, 9)
 test_2 (_mm256_fcmul_round_pch, __m256h, __m256h, __m256h, 8)
+test_2 (_mm256_maskz_getexp_round_pd, __m256d, __mmask8, __m256d, 8)
+test_2 (_mm256_maskz_getexp_round_ph, __m256h, __mmask16, __m256h, 8)
+test_2 (_mm256_maskz_getexp_round_ps, __m256, __mmask8, __m256, 8)
 test_2x (_mm256_cmp_round_pd_mask, __mmask8, __m256d, __m256d, 1, 8)
 test_2x (_mm256_cmp_round_ph_mask, __mmask16, __m256h, __m256h, 1, 8)
 test_2x (_mm256_cmp_round_ps_mask, __mmask8, __m256, __m256, 1, 8)
+test_2y (_mm256_maskz_getmant_round_pd, __m256d, __mmask8, __m256d, 1, 1, 8)
+test_2y (_mm256_maskz_getmant_round_ph, __m256h, __mmask16, __m256h, 1, 1, 8)
+test_2y (_mm256_maskz_getmant_round_ps, __m256, __mmask8, __m256, 1, 1, 8)
 test_3 (_mm256_maskz_add_round_pd, __m256d, __mmask8, __m256d, __m256d, 9)
 test_3 (_mm256_maskz_add_round_ph, __m256h, __mmask16, __m256h, __m256h, 8)
 test_3 (_mm256_maskz_add_round_ps, __m256, __mmask8, __m256, __m256, 9)
@@ -1240,11 +1252,17 @@ test_3 (_mm256_fnmadd_round_ps, __m256, __m256, __m256, __m256, 9)
 test_3 (_mm256_fnmsub_round_pd, __m256d, __m256d, __m256d, __m256d, 9)
 test_3 (_mm256_fnmsub_round_ph, __m256h, __m256h, __m256h, __m256h, 9)
 test_3 (_mm256_fnmsub_round_ps, __m256, __m256, __m256, __m256, 9)
+test_3 (_mm256_mask_getexp_round_pd, __m256d, __m256d, __mmask8, __m256d, 8)
+test_3 (_mm256_mask_getexp_round_ph, __m256h, __m256h, __mmask16, __m256h, 8)
+test_3 (_mm256_mask_getexp_round_ps, __m256, __m256, __mmask8, __m256, 8)
 test_3x (_mm256_mask_cmp_round_pd_mask, __mmask8, __mmask8, __m256d, __m256d, 1, 8)
 test_3x (_mm256_mask_cmp_round_ph_mask, __mmask16, __mmask16, __m256h, __m256h, 1, 8)
 test_3x (_mm256_mask_cmp_round_ps_mask, __mmask8, __mmask8, __m256, __m256, 1, 8)
 test_3x (_mm256_fixupimm_round_pd, __m256d, __m256d, __m256d, __m256i, 3, 8)
 test_3x (_mm256_fixupimm_round_ps, __m256, __m256, __m256, __m256i, 3, 8)
+test_3y (_mm256_mask_getmant_round_pd, __m256d, __m256d, __mmask8, __m256d, 1, 1, 8)
+test_3y (_mm256_mask_getmant_round_ph, __m256h, __m256h, __mmask16, __m256h, 1, 1, 8)
+test_3y (_mm256_mask_getmant_round_ps, __m256, __m256, __mmask8, __m256, 1, 1, 8)
 test_4 (_mm256_mask_add_round_pd, __m256d, __m256d, __mmask8, __m256d, __m256d, 9)
 test_4 (_mm256_mask_add_round_ph, __m256h, __m256h, __mmask16, __m256h, __m256h, 8)
 test_4 (_mm256_mask_add_round_ps, __m256, __m256, __mmask8, __m256, __m256, 9)
index ecd8c50053c829397b177fb6017fdd3fea53f543..95f55b2a843bca618368beccdf7926cd64520f6b 100644 (file)
 #define __builtin_ia32_vfnmsubps256_mask_round(A, B, C, D, E) __builtin_ia32_vfnmsubps256_mask_round(A, B, C, D, 8)
 #define __builtin_ia32_vfnmsubps256_mask3_round(A, B, C, D, E) __builtin_ia32_vfnmsubps256_mask3_round(A, B, C, D, 8)
 #define __builtin_ia32_vfnmsubps256_maskz_round(A, B, C, D, E) __builtin_ia32_vfnmsubps256_maskz_round(A, B, C, D, 8)
+#define __builtin_ia32_getexppd256_mask_round(A, B, C, D) __builtin_ia32_getexppd256_mask_round(A, B, C, 8)
+#define __builtin_ia32_getexpph256_mask_round(A, B, C, D) __builtin_ia32_getexpph256_mask_round(A, B, C, 8)
+#define __builtin_ia32_getexpps256_mask_round(A, B, C, D) __builtin_ia32_getexpps256_mask_round(A, B, C, 8)
+#define __builtin_ia32_getmantpd256_mask_round(A, F, C, D, E) __builtin_ia32_getmantpd256_mask_round(A, 1, C, D, 8)
+#define __builtin_ia32_getmantph256_mask_round(A, F, C, D, E) __builtin_ia32_getmantph256_mask_round(A, 1, C, D, 8)
+#define __builtin_ia32_getmantps256_mask_round(A, F, C, D, E) __builtin_ia32_getmantps256_mask_round(A, 1, C, D, 8)
 
 #pragma GCC target ("sse4a,3dnow,avx,avx2,fma4,xop,aes,pclmul,popcnt,abm,lzcnt,bmi,bmi2,tbm,lwp,fsgsbase,rdrnd,f16c,fma,rtm,rdseed,prfchw,adx,fxsr,xsaveopt,sha,xsavec,xsaves,clflushopt,clwb,mwaitx,clzero,pku,sgx,rdpid,gfni,vpclmulqdq,pconfig,wbnoinvd,enqcmd,avx512vp2intersect,serialize,tsxldtrk,amx-tile,amx-int8,amx-bf16,kl,widekl,avxvnni,avxifma,avxvnniint8,avxneconvert,cmpccxadd,amx-fp16,prefetchi,raoint,amx-complex,avxvnniint16,sm3,sha512,sm4,avx10.2-512")