]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert "AVX10.2 ymm rounding: Support vcvttph2{,u}{dq,qq,w} intrins"
authorHaochen Jiang <haochen.jiang@intel.com>
Mon, 24 Mar 2025 06:24:09 +0000 (14:24 +0800)
committerHaochen Jiang <haochen.jiang@intel.com>
Mon, 24 Mar 2025 06:24:09 +0000 (14:24 +0800)
This reverts commit 493c5096050523ebc05e5fa21612683a996b97a7.

gcc/config/i386/avx10_2roundingintrin.h
gcc/config/i386/i386-builtin.def
gcc/config/i386/sse.md
gcc/config/i386/subst.md
gcc/testsuite/gcc.target/i386/avx-1.c
gcc/testsuite/gcc.target/i386/avx10_2-rounding-2.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 f2a5f0318be40922b8a44c746a82f848c361e1d7..8fca7f00ba0183e9754793c72dc3fbbfc1efc706 100644 (file)
@@ -1241,216 +1241,6 @@ _mm256_maskz_cvtt_roundpd_epu64 (__mmask8 __U, __m256d __A, const int __R)
                                                       (__mmask8) __U,
                                                       __R);
 }
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_cvtt_roundph_epi32 (__m128h __A, const int __R)
-{
-  return
-    (__m256i) __builtin_ia32_vcvttph2dq256_mask_round ((__v8hf) __A,
-                                                      (__v8si)
-                                                      _mm256_setzero_si256 (),
-                                                      (__mmask8) -1,
-                                                      __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_mask_cvtt_roundph_epi32 (__m256i __W, __mmask8 __U, __m128h __A,
-                               const int __R)
-{
-  return (__m256i) __builtin_ia32_vcvttph2dq256_mask_round ((__v8hf) __A,
-                                                           (__v8si) __W,
-                                                           (__mmask8) __U,
-                                                           __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_maskz_cvtt_roundph_epi32 (__mmask8 __U, __m128h __A, const int __R)
-{
-  return
-    (__m256i) __builtin_ia32_vcvttph2dq256_mask_round ((__v8hf) __A,
-                                                      (__v8si)
-                                                      _mm256_setzero_si256 (),
-                                                      (__mmask8) __U,
-                                                      __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_cvtt_roundph_epi64 (__m128h __A, const int __R)
-{
-  return
-    (__m256i) __builtin_ia32_vcvttph2qq256_mask_round ((__v8hf) __A,
-                                                      (__v4di)
-                                                      _mm256_setzero_si256 (),
-                                                      (__mmask8) -1,
-                                                      __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_mask_cvtt_roundph_epi64 (__m256i __W, __mmask8 __U, __m128h __A,
-                               const int __R)
-{
-  return (__m256i) __builtin_ia32_vcvttph2qq256_mask_round ((__v8hf) __A,
-                                                           (__v4di) __W,
-                                                           (__mmask8) __U,
-                                                           __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_maskz_cvtt_roundph_epi64 (__mmask8 __U, __m128h __A, const int __R)
-{
-  return
-    (__m256i) __builtin_ia32_vcvttph2qq256_mask_round ((__v8hf) __A,
-                                                      (__v4di)
-                                                      _mm256_setzero_si256 (),
-                                                      (__mmask8) __U,
-                                                      __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_cvtt_roundph_epu32 (__m128h __A, const int __R)
-{
-  return
-    (__m256i) __builtin_ia32_vcvttph2udq256_mask_round ((__v8hf) __A,
-                                                       (__v8si)
-                                                       _mm256_setzero_si256 (),
-                                                       (__mmask8) -1,
-                                                       __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_mask_cvtt_roundph_epu32 (__m256i __W, __mmask8 __U, __m128h __A,
-                               const int __R)
-{
-  return (__m256i) __builtin_ia32_vcvttph2udq256_mask_round ((__v8hf) __A,
-                                                            (__v8si) __W,
-                                                            (__mmask8) __U,
-                                                            __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_maskz_cvtt_roundph_epu32 (__mmask8 __U, __m128h __A, const int __R)
-{
-  return
-    (__m256i) __builtin_ia32_vcvttph2udq256_mask_round ((__v8hf) __A,
-                                                       (__v8si)
-                                                       _mm256_setzero_si256 (),
-                                                       (__mmask8) __U,
-                                                       __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_cvtt_roundph_epu64 (__m128h __A, const int __R)
-{
-  return
-    (__m256i) __builtin_ia32_vcvttph2uqq256_mask_round ((__v8hf) __A,
-                                                       (__v4di)
-                                                       _mm256_setzero_si256 (),
-                                                       (__mmask8) -1,
-                                                       __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_mask_cvtt_roundph_epu64 (__m256i __W, __mmask8 __U, __m128h __A,
-                               const int __R)
-{
-  return (__m256i) __builtin_ia32_vcvttph2uqq256_mask_round ((__v8hf) __A,
-                                                            (__v4di) __W,
-                                                            (__mmask8) __U,
-                                                            __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_maskz_cvtt_roundph_epu64 (__mmask8 __U, __m128h __A, const int __R)
-{
-  return
-    (__m256i) __builtin_ia32_vcvttph2uqq256_mask_round ((__v8hf) __A,
-                                                       (__v4di)
-                                                       _mm256_setzero_si256 (),
-                                                       (__mmask8) __U,
-                                                       __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_cvtt_roundph_epu16 (__m256h __A, const int __R)
-{
-  return
-    (__m256i) __builtin_ia32_vcvttph2uw256_mask_round ((__v16hf) __A,
-                                                      (__v16hi)
-                                                      _mm256_setzero_si256 (),
-                                                      (__mmask16) -1,
-                                                      __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_mask_cvtt_roundph_epu16 (__m256i __W, __mmask16 __U, __m256h __A,
-                               const int __R)
-{
-  return (__m256i) __builtin_ia32_vcvttph2uw256_mask_round ((__v16hf) __A,
-                                                           (__v16hi) __W,
-                                                           (__mmask16) __U,
-                                                           __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_maskz_cvtt_roundph_epu16 (__mmask16 __U, __m256h __A, const int __R)
-{
-  return
-    (__m256i) __builtin_ia32_vcvttph2uw256_mask_round ((__v16hf) __A,
-                                                      (__v16hi)
-                                                      _mm256_setzero_si256 (),
-                                                      (__mmask16) __U,
-                                                      __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_cvtt_roundph_epi16 (__m256h __A, const int __R)
-{
-  return
-    (__m256i) __builtin_ia32_vcvttph2w256_mask_round ((__v16hf) __A,
-                                                     (__v16hi)
-                                                     _mm256_setzero_si256 (),
-                                                     (__mmask16) -1,
-                                                     __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_mask_cvtt_roundph_epi16 (__m256i __W, __mmask16 __U, __m256h __A,
-                               const int __R)
-{
-  return (__m256i) __builtin_ia32_vcvttph2w256_mask_round ((__v16hf) __A,
-                                                          (__v16hi) __W,
-                                                          (__mmask16) __U,
-                                                          __R);
-}
-
-extern __inline __m256i
-__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm256_maskz_cvtt_roundph_epi16 (__mmask16 __U, __m256h __A, const int __R)
-{
-  return
-    (__m256i) __builtin_ia32_vcvttph2w256_mask_round ((__v16hf) __A,
-                                                     (__v16hi)
-                                                     _mm256_setzero_si256 (),
-                                                     (__mmask16) __U,
-                                                     __R);
-}
 #else
 #define _mm256_add_round_pd(A, B, R) \
   ((__m256d) __builtin_ia32_addpd256_mask_round ((__v4df) (A), \
@@ -2156,7 +1946,6 @@ _mm256_maskz_cvtt_roundph_epi16 (__mmask16 __U, __m256h __A, const int __R)
                                                      (_mm_setzero_si128 ()), \
                                                      (__mmask8) (U), \
                                                      (R)))
-
 #define _mm256_cvtt_roundpd_epu64(A, R) \
   ((__m256i) \
    __builtin_ia32_cvttpd2uqq256_mask_round ((__v4df) (A), \
@@ -2186,130 +1975,6 @@ _mm256_maskz_cvtt_roundph_epi16 (__mmask16 __U, __m256h __A, const int __R)
                                            (_mm256_setzero_si256 ()), \
                                            (__mmask8) (-1), \
                                            (R)))
-
-#define _mm256_mask_cvtt_roundph_epi32(W, U, A, R) \
-  ((__m256i) __builtin_ia32_vcvttph2dq256_mask_round ((__v8hf) (A), \
-                                                     (__v8si) (W), \
-                                                     (__mmask8) (U), \
-                                                     (R)))
-
-#define _mm256_maskz_cvtt_roundph_epi32(U, A, R) \
-  ((__m256i) \
-   __builtin_ia32_vcvttph2dq256_mask_round ((__v8hf) (A), \
-                                           (__v8si) \
-                                           (_mm256_setzero_si256 ()), \
-                                           (__mmask8) (U), \
-                                           (R)))
-
-#define _mm256_cvtt_roundph_epi64(A, R) \
-  ((__m256i) \
-   __builtin_ia32_vcvttph2qq256_mask_round ((__v8hf) (A), \
-                                           (__v4di) \
-                                           (_mm256_setzero_si256 ()), \
-                                           (__mmask8) (-1), \
-                                           (R)))
-
-#define _mm256_mask_cvtt_roundph_epi64(W, U, A, R) \
-  ((__m256i) __builtin_ia32_vcvttph2qq256_mask_round ((__v8hf) (A), \
-                                                     (__v4di) (W), \
-                                                     (__mmask8) (U), \
-                                                     (R)))
-
-#define _mm256_maskz_cvtt_roundph_epi64(U, A, R) \
-  ((__m256i) \
-   __builtin_ia32_vcvttph2qq256_mask_round ((__v8hf) (A), \
-                                           (__v4di) \
-                                           (_mm256_setzero_si256 ()), \
-                                           (__mmask8) (U), \
-                                           (R)))
-
-#define _mm256_cvtt_roundph_epu32(A, R) \
-  ((__m256i) \
-   __builtin_ia32_vcvttph2udq256_mask_round ((__v8hf) (A), \
-                                            (__v8si) \
-                                            (_mm256_setzero_si256 ()), \
-                                            (__mmask8) (-1), \
-                                            (R)))
-
-#define _mm256_mask_cvtt_roundph_epu32(W, U, A, R) \
-  ((__m256i) __builtin_ia32_vcvttph2udq256_mask_round ((__v8hf) (A), \
-                                                      (__v8si) (W), \
-                                                      (__mmask8) (U), \
-                                                      (R)))
-
-#define _mm256_maskz_cvtt_roundph_epu32(U, A, R) \
-  ((__m256i) \
-   __builtin_ia32_vcvttph2udq256_mask_round ((__v8hf) (A), \
-                                            (__v8si) \
-                                            (_mm256_setzero_si256 ()), \
-                                            (__mmask8) (U), \
-                                            (R)))
-
-#define _mm256_cvtt_roundph_epu64(A, R) \
-  ((__m256i) \
-   __builtin_ia32_vcvttph2uqq256_mask_round ((__v8hf) (A), \
-                                            (__v4di) \
-                                            (_mm256_setzero_si256 ()), \
-                                            (__mmask8) (-1), \
-                                            (R)))
-
-#define _mm256_mask_cvtt_roundph_epu64(W, U, A, R) \
-  ((__m256i) __builtin_ia32_vcvttph2uqq256_mask_round ((__v8hf) (A), \
-                                                      (__v4di) (W), \
-                                                      (__mmask8) (U), \
-                                                      (R)))
-
-#define _mm256_maskz_cvtt_roundph_epu64(U, A, R) \
-  ((__m256i) \
-   __builtin_ia32_vcvttph2uqq256_mask_round ((__v8hf) (A), \
-                                            (__v4di) \
-                                            (_mm256_setzero_si256 ()), \
-                                            (__mmask8) (U), \
-                                            (R)))
-
-#define _mm256_cvtt_roundph_epu16(A, R) \
-  ((__m256i) \
-   __builtin_ia32_vcvttph2uw256_mask_round ((__v16hf) (A), \
-                                           (__v16hi) \
-                                           (_mm256_setzero_si256 ()), \
-                                           (__mmask16) (-1), \
-                                           (R)))
-
-#define _mm256_mask_cvtt_roundph_epu16(W, U, A, R) \
-  ((__m256i) __builtin_ia32_vcvttph2uw256_mask_round ((__v16hf) (A), \
-                                                     (__v16hi) (W), \
-                                                     (__mmask16) (U), \
-                                                     (R)))
-
-#define _mm256_maskz_cvtt_roundph_epu16(U, A, R) \
-  ((__m256i) \
-   __builtin_ia32_vcvttph2uw256_mask_round ((__v16hf) (A), \
-                                           (__v16hi) \
-                                           (_mm256_setzero_si256 ()), \
-                                           (__mmask16) (U), \
-                                           (R)))
-
-#define _mm256_cvtt_roundph_epi16(A, R) \
-  ((__m256i) \
-   __builtin_ia32_vcvttph2uw256_mask_round ((__v16hf) (A), \
-                                           (__v16hi) \
-                                           (_mm256_setzero_si256 ()), \
-                                           (__mmask16) (-1),  \
-                                           (R)))
-
-#define _mm256_mask_cvtt_roundph_epi16(W, U, A, R) \
-  ((__m256i) __builtin_ia32_vcvttph2uw256_mask_round ((__v16hf) (A), \
-                                                     (__v16hi) (W), \
-                                                     (__mmask16) (U), \
-                                                     (R)))
-
-#define _mm256_maskz_cvtt_roundph_epi16(U, A, R)\
-  ((__m256i) \
-   __builtin_ia32_vcvttph2uw256_mask_round ((__v16hf) (A), \
-                                           (__v16hi) \
-                                           (_mm256_setzero_si256 ()), \
-                                           (__mmask16) (U), \
-                                           (R)))
 #endif
 
 #ifdef __DISABLE_AVX10_2_256__
index 6645b094c26dd472e51305b772c10ed7f152dd6e..1c104375fd60671e250b85f29e46a140fb35d5ef 100644 (file)
@@ -3696,12 +3696,6 @@ BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_unspec_fix_truncv4dfv4si2_mask_
 BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_unspec_fix_truncv4dfv4di2_mask_round, "__builtin_ia32_cvttpd2qq256_mask_round", IX86_BUILTIN_VCVTTPD2QQ256_MASK_ROUND, UNKNOWN, (int) V4DI_FTYPE_V4DF_V4DI_UQI_INT)
 BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_unspec_fixuns_truncv4dfv4si2_mask_round, "__builtin_ia32_cvttpd2udq256_mask_round", IX86_BUILTIN_VCVTTPD2UDQ256_MASK_ROUND, UNKNOWN, (int) V4SI_FTYPE_V4DF_V4SI_UQI_INT)
 BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_unspec_fixuns_truncv4dfv4di2_mask_round, "__builtin_ia32_cvttpd2uqq256_mask_round", IX86_BUILTIN_VCVTTPD2UQQ256_MASK_ROUND, UNKNOWN, (int) V4DI_FTYPE_V4DF_V4DI_UQI_INT)
-BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_unspec_avx512fp16_fix_truncv8si2_mask_round, "__builtin_ia32_vcvttph2dq256_mask_round", IX86_BUILTIN_VCVTTPH2DQ256_MASK_ROUND, UNKNOWN, (int) V8SI_FTYPE_V8HF_V8SI_UQI_INT)
-BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_unspec_avx512fp16_fix_truncv4di2_mask_round, "__builtin_ia32_vcvttph2qq256_mask_round", IX86_BUILTIN_VCVTTPH2QQ256_MASK_ROUND, UNKNOWN, (int) V4DI_FTYPE_V8HF_V4DI_UQI_INT)
-BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_unspec_avx512fp16_fixuns_truncv8si2_mask_round, "__builtin_ia32_vcvttph2udq256_mask_round", IX86_BUILTIN_VCVTTPH2UDQ256_MASK_ROUND, UNKNOWN, (int) V8SI_FTYPE_V8HF_V8SI_UQI_INT)
-BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_unspec_avx512fp16_fixuns_truncv4di2_mask_round, "__builtin_ia32_vcvttph2uqq256_mask_round", IX86_BUILTIN_VCVTTPH2UQQ256_MASK_ROUND, UNKNOWN, (int) V4DI_FTYPE_V8HF_V4DI_UQI_INT)
-BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_unspec_avx512fp16_fixuns_truncv16hi2_mask_round, "__builtin_ia32_vcvttph2uw256_mask_round", IX86_BUILTIN_VCVTTPH2UW256_MASK_ROUND, UNKNOWN, (int) V16HI_FTYPE_V16HF_V16HI_UHI_INT)
-BDESC (0, OPTION_MASK_ISA2_AVX10_2_256, CODE_FOR_unspec_avx512fp16_fix_truncv16hi2_mask_round, "__builtin_ia32_vcvttph2w256_mask_round", IX86_BUILTIN_VCVTTPH2W256_MASK_ROUND, UNKNOWN, (int) V16HI_FTYPE_V16HF_V16HI_UHI_INT)
 BDESC (0, OPTION_MASK_ISA2_AVX10_2_512, CODE_FOR_avx10_2_cvt2ps2phx_v32hf_mask_round, "__builtin_ia32_vcvt2ps2phx512_mask_round", IX86_BUILTIN_VCVT2PS2PHX_V32HF_MASK_ROUND, UNKNOWN, (int) V32HF_FTYPE_V16SF_V16SF_V32HF_USI_INT)
 BDESC (0, OPTION_MASK_ISA2_AVX10_2_512, CODE_FOR_avx10_2_cvtph2ibsv32hf_mask_round, "__builtin_ia32_cvtph2ibs512_mask_round", IX86_BUILTIN_CVTPH2IBS512_MASK_ROUND, UNKNOWN, (int) V32HI_FTYPE_V32HF_V32HI_USI_INT)
 BDESC (0, OPTION_MASK_ISA2_AVX10_2_512, CODE_FOR_avx10_2_cvtph2iubsv32hf_mask_round, "__builtin_ia32_cvtph2iubs512_mask_round", IX86_BUILTIN_CVTPH2IUBS512_MASK_ROUND, UNKNOWN, (int) V32HI_FTYPE_V32HF_V32HI_USI_INT)
index 0ce97a218e50f8674e1f7b8a98b7ea675e31f403..9ef0189c8b8fe755a15a3bfdfaab651647a72d05 100644 (file)
        (unspec:VI2H_AVX512VL
          [(match_operand:<ssePHmode> 1 "<round_saeonly_nimm_predicate>" "<round_saeonly_constraint>")]
          UNSPEC_VCVTT_U))]
-  "TARGET_AVX512FP16 && <round_saeonly_mode_condition>"
+  "TARGET_AVX512FP16"
   "vcvttph2<vcvtt_suffix><sseintconvert>\t{<round_saeonly_mask_op2>%1, %0<mask_operand2>|%0<mask_operand2>, %1<round_saeonly_mask_op2>}"
   [(set_attr "type" "ssecvt")
    (set_attr "prefix" "evex")
   [(set (match_operand:VI2H_AVX512VL 0 "register_operand" "=v")
        (any_fix:VI2H_AVX512VL
          (match_operand:<ssePHmode> 1 "<round_saeonly_nimm_predicate>" "<round_saeonly_constraint>")))]
-  "TARGET_AVX512FP16 && <round_saeonly_mode_condition>"
+  "TARGET_AVX512FP16"
   "vcvttph2<fixsuffix><sseintconvert>\t{<round_saeonly_mask_op2>%1, %0<mask_operand2>|%0<mask_operand2>, %1<round_saeonly_mask_op2>}"
   [(set_attr "type" "ssecvt")
    (set_attr "prefix" "evex")
     }
 })
 
-(define_insn "unspec_avx512fp16_fix<vcvtt_uns_suffix>_trunc<mode>2<mask_name><round_saeonly_name>"
+(define_insn "unspec_avx512fp16_fix<vcvtt_uns_suffix>_trunc<mode>2<mask_name>"
   [(set (match_operand:VI4_128_8_256 0 "register_operand" "=v")
        (unspec:VI4_128_8_256
            [(match_operand:V8HF 1 "register_operand" "v")]
            UNSPEC_VCVTT_U))]
-  "TARGET_AVX512FP16 && TARGET_AVX512VL && <round_saeonly_mode_condition>"
-  "vcvttph2<vcvtt_suffix><sseintconvert>\t{<round_saeonly_mask_op2>%1, %0<mask_operand2>|%0<mask_operand2>, %1<round_saeonly_mask_op2>}"
+  "TARGET_AVX512FP16 && TARGET_AVX512VL"
+  "vcvttph2<vcvtt_suffix><sseintconvert>\t{%1, %0<mask_operand2>|%0<mask_operand2>, %1}"
   [(set_attr "type" "ssecvt")
    (set_attr "prefix" "evex")
    (set_attr "mode" "<sseinsnmode>")])
index c47c5d5943dc6c3efc06ea766a0ffd25c7967313..7cf927f029a82baa4ff7e76b745d36b38727f16b 100644 (file)
                                                                                       || <MODE>mode == V4DFmode
                                                                                       || <MODE>mode == V4DImode
                                                                                       || <MODE>mode == V8SImode
-                                                                                      || <MODE>mode == V16HImode
                                                                                       || <MODE>mode == V16HFmode)))")
 (define_subst_attr "round_saeonly_applied" "round_saeonly" "false" "true")
 
index 2986034a94b53e875bf49fed623b04b98a42b590..1dd20c3410bf4fbdeb4682554ef5c2e98a750e23 100644 (file)
 #define __builtin_ia32_cvttpd2qq256_mask_round(A, B, C, D) __builtin_ia32_cvttpd2qq256_mask_round(A, B, C, 8)
 #define __builtin_ia32_cvttpd2udq256_mask_round(A, B, C, D) __builtin_ia32_cvttpd2udq256_mask_round(A, B, C, 8)
 #define __builtin_ia32_cvttpd2uqq256_mask_round(A, B, C, D) __builtin_ia32_cvttpd2uqq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2dq256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2dq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2qq256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2qq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2uqq256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2uqq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2udq256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2udq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2uw256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2uw256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2w256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2w256_mask_round(A, B, C, 8)
 
 /* avx10_2-512mediaintrin.h */
 #define __builtin_ia32_mpsadbw512(A, B, C) __builtin_ia32_mpsadbw512 (A, B, 1)
index 1b2f6a0b14a8f6b71708d7bc7b00b03dfb245bb0..f860cb533024ddd6eefb3ca8cb3f433a8f2629fa 100644 (file)
 /* { dg-final { scan-assembler-times "vcvttpd2uqq\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)"  1  }  } */
 /* { dg-final { scan-assembler-times "vcvttpd2uqq\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1  }  } */
 /* { dg-final { scan-assembler-times "vcvttpd2uqq\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2dq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2dq\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\[^\{\n\r]*(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2dq\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\{z\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2qq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2qq\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\[^\{\n\r]*(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2qq\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\{z\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2udq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2udq\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\[^\{\n\r]*(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2udq\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\{z\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2uqq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2uqq\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\[^\{\n\r]*(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2uqq\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\{z\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2uw\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2uw\[ \\t\]+\{sae\}\[^\{\n\]*%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\[^\{\n\r]*(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2uw\[ \\t\]+\{sae\}\[^\{\n\]*%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\{z\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2w\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2w\[ \\t\]+\{sae\}\[^\{\n\]*%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\[^\{\n\r]*(?:\n|\[ \\t\]+#)" 1  }  } */
-/* { dg-final { scan-assembler-times "vcvttph2w\[ \\t\]+\{sae\}\[^\{\n\]*%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\{z\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 1  }  } */
 
 #include <immintrin.h>
 
@@ -88,31 +70,3 @@ avx10_2_test_2 (void)
   xi = _mm256_mask_cvtt_roundpd_epu64 (xi, m8, xd, _MM_FROUND_NO_EXC);
   xi = _mm256_maskz_cvtt_roundpd_epu64 (m8, xd, _MM_FROUND_NO_EXC);
 }
-
-void extern
-avx10_2_test_3 (void)
-{
-  xi = _mm256_cvtt_roundph_epi32 (hxh, 4);
-  xi = _mm256_mask_cvtt_roundph_epi32 (xi, m8, hxh, 8);
-  xi = _mm256_maskz_cvtt_roundph_epi32 (m8, hxh, 8);
-
-  xi = _mm256_cvtt_roundph_epi64 (hxh, 4);
-  xi = _mm256_mask_cvtt_roundph_epi64 (xi, m8, hxh, 8);
-  xi = _mm256_maskz_cvtt_roundph_epi64 (m8, hxh, 8);
-
-  xi = _mm256_cvtt_roundph_epu32 (hxh, 4);
-  xi = _mm256_mask_cvtt_roundph_epu32 (xi, m8, hxh, 8);
-  xi = _mm256_maskz_cvtt_roundph_epu32 (m8, hxh, 8);
-
-  xi = _mm256_cvtt_roundph_epu64 (hxh, 4);
-  xi = _mm256_mask_cvtt_roundph_epu64 (xi, m8, hxh, 8);
-  xi = _mm256_maskz_cvtt_roundph_epu64 (m8, hxh, 8);
-
-  xi = _mm256_cvtt_roundph_epu16 (xh, 4);
-  xi = _mm256_mask_cvtt_roundph_epu16 (xi, m16, xh, 8);
-  xi = _mm256_maskz_cvtt_roundph_epu16 (m16, xh, 8);
-
-  xi = _mm256_cvtt_roundph_epi16 (xh, 4);
-  xi = _mm256_mask_cvtt_roundph_epi16 (xi, m16, xh, 8);
-  xi = _mm256_maskz_cvtt_roundph_epi16 (m16, xh, 8);
-}
index 0c117eb28d27c7bf25f2b14814525abd782cdaf4..c35a8314548dba6e8c7f00239918d15f8e79c50b 100644 (file)
 #define __builtin_ia32_cvttpd2qq256_mask_round(A, B, C, D) __builtin_ia32_cvttpd2qq256_mask_round(A, B, C, 8)
 #define __builtin_ia32_cvttpd2udq256_mask_round(A, B, C, D) __builtin_ia32_cvttpd2udq256_mask_round(A, B, C, 8)
 #define __builtin_ia32_cvttpd2uqq256_mask_round(A, B, C, D) __builtin_ia32_cvttpd2uqq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2dq256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2dq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2qq256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2qq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2uqq256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2uqq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2udq256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2udq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2uw256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2uw256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2w256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2w256_mask_round(A, B, C, 8)
 
 /* avx10_2-512mediaintrin.h */
 #define __builtin_ia32_mpsadbw512(A, B, C) __builtin_ia32_mpsadbw512 (A, B, 1)
index 3010b32795dfdd7f9ec011d284e55e104ac192b7..f5f6bcd88c3c6617710c6906bc3e8c84ccd030aa 100644 (file)
@@ -1050,12 +1050,6 @@ test_1 (_mm256_cvtt_roundpd_epi32, __m128i, __m256d, 8)
 test_1 (_mm256_cvtt_roundpd_epi64, __m256i, __m256d, 8)
 test_1 (_mm256_cvtt_roundpd_epu32, __m128i, __m256d, 8)
 test_1 (_mm256_cvtt_roundpd_epu64, __m256i, __m256d, 8)
-test_1 (_mm256_cvtt_roundph_epi32, __m256i, __m128d, 8)
-test_1 (_mm256_cvtt_roundph_epi64, __m256i, __m128h, 8)
-test_1 (_mm256_cvtt_roundph_epu32, __m256i, __m128d, 8)
-test_1 (_mm256_cvtt_roundph_epu64, __m256i, __m128h, 8)
-test_1 (_mm256_cvtt_roundph_epu16, __m256i, __m256h, 8)
-test_1 (_mm256_cvtt_roundph_epi16, __m256i, __m256h, 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)
@@ -1089,12 +1083,6 @@ test_2 (_mm256_maskz_cvtt_roundpd_epi32, __m128i, __mmask8, __m256d, 8)
 test_2 (_mm256_maskz_cvtt_roundpd_epi64, __m256i, __mmask8, __m256d, 8)
 test_2 (_mm256_maskz_cvtt_roundpd_epu32, __m128i, __mmask8, __m256d, 8)
 test_2 (_mm256_maskz_cvtt_roundpd_epu64, __m256i, __mmask8, __m256d, 8)
-test_2 (_mm256_maskz_cvtt_roundph_epi32, __m256i, __mmask8, __m128h, 8)
-test_2 (_mm256_maskz_cvtt_roundph_epi64, __m256i, __mmask8, __m128h, 8)
-test_2 (_mm256_maskz_cvtt_roundph_epu32, __m256i, __mmask8, __m128h, 8)
-test_2 (_mm256_maskz_cvtt_roundph_epu64, __m256i, __mmask8, __m128h, 8)
-test_2 (_mm256_maskz_cvtt_roundph_epu16, __m256i, __mmask16, __m256h, 8)
-test_2 (_mm256_maskz_cvtt_roundph_epi16, __m256i, __mmask16, __m256h, 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)
@@ -1131,12 +1119,6 @@ test_3 (_mm256_mask_cvtt_roundpd_epi32, __m128i, __m128i, __mmask8, __m256d, 8)
 test_3 (_mm256_mask_cvtt_roundpd_epi64, __m256i, __m256i, __mmask8, __m256d, 8)
 test_3 (_mm256_mask_cvtt_roundpd_epu32, __m128i, __m128i, __mmask8, __m256d, 8)
 test_3 (_mm256_mask_cvtt_roundpd_epu64, __m256i, __m256i, __mmask8, __m256d, 8)
-test_3 (_mm256_mask_cvtt_roundph_epi32, __m256i, __m256i, __mmask8, __m128h, 8)
-test_3 (_mm256_mask_cvtt_roundph_epi64, __m256i, __m256i, __mmask8, __m128h, 8)
-test_3 (_mm256_mask_cvtt_roundph_epu32, __m256i, __m256i, __mmask8, __m128h, 8)
-test_3 (_mm256_mask_cvtt_roundph_epu64, __m256i, __m256i, __mmask8, __m128h, 8)
-test_3 (_mm256_mask_cvtt_roundph_epu16, __m256i, __m256i, __mmask16, __m256h, 8)
-test_3 (_mm256_mask_cvtt_roundph_epi16, __m256i, __m256i, __mmask16, __m256h, 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)
index 3a395c137f32e10aedbf3093890d1f5ed6960abb..d894ea8a9d8e0ade8ef0db679b04fe3826ef9140 100644 (file)
@@ -1092,12 +1092,6 @@ test_1 (_mm256_cvtt_roundpd_epi32, __m128i, __m256d, 8)
 test_1 (_mm256_cvtt_roundpd_epi64, __m256i, __m256d, 8)
 test_1 (_mm256_cvtt_roundpd_epu32, __m128i, __m256d, 8)
 test_1 (_mm256_cvtt_roundpd_epu64, __m256i, __m256d, 8)
-test_1 (_mm256_cvtt_roundph_epi32, __m256i, __m128d, 8)
-test_1 (_mm256_cvtt_roundph_epi64, __m256i, __m128h, 8)
-test_1 (_mm256_cvtt_roundph_epu32, __m256i, __m128d, 8)
-test_1 (_mm256_cvtt_roundph_epu64, __m256i, __m128h, 8)
-test_1 (_mm256_cvtt_roundph_epu16, __m256i, __m256h, 8)
-test_1 (_mm256_cvtt_roundph_epi16, __m256i, __m256h, 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)
@@ -1131,12 +1125,6 @@ test_2 (_mm256_maskz_cvtt_roundpd_epi32, __m128i, __mmask8, __m256d, 8)
 test_2 (_mm256_maskz_cvtt_roundpd_epi64, __m256i, __mmask8, __m256d, 8)
 test_2 (_mm256_maskz_cvtt_roundpd_epu32, __m128i, __mmask8, __m256d, 8)
 test_2 (_mm256_maskz_cvtt_roundpd_epu64, __m256i, __mmask8, __m256d, 8)
-test_2 (_mm256_maskz_cvtt_roundph_epi32, __m256i, __mmask8, __m128h, 8)
-test_2 (_mm256_maskz_cvtt_roundph_epi64, __m256i, __mmask8, __m128h, 8)
-test_2 (_mm256_maskz_cvtt_roundph_epu32, __m256i, __mmask8, __m128h, 8)
-test_2 (_mm256_maskz_cvtt_roundph_epu64, __m256i, __mmask8, __m128h, 8)
-test_2 (_mm256_maskz_cvtt_roundph_epu16, __m256i, __mmask16, __m256h, 8)
-test_2 (_mm256_maskz_cvtt_roundph_epi16, __m256i, __mmask16, __m256h, 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)
@@ -1173,12 +1161,6 @@ test_3 (_mm256_mask_cvtt_roundpd_epi32, __m128i, __m128i, __mmask8, __m256d, 8)
 test_3 (_mm256_mask_cvtt_roundpd_epi64, __m256i, __m256i, __mmask8, __m256d, 8)
 test_3 (_mm256_mask_cvtt_roundpd_epu32, __m128i, __m128i, __mmask8, __m256d, 8)
 test_3 (_mm256_mask_cvtt_roundpd_epu64, __m256i, __m256i, __mmask8, __m256d, 8)
-test_3 (_mm256_mask_cvtt_roundph_epi32, __m256i, __m256i, __mmask8, __m128h, 8)
-test_3 (_mm256_mask_cvtt_roundph_epi64, __m256i, __m256i, __mmask8, __m128h, 8)
-test_3 (_mm256_mask_cvtt_roundph_epu32, __m256i, __m256i, __mmask8, __m128h, 8)
-test_3 (_mm256_mask_cvtt_roundph_epu64, __m256i, __m256i, __mmask8, __m128h, 8)
-test_3 (_mm256_mask_cvtt_roundph_epu16, __m256i, __m256i, __mmask16, __m256h, 8)
-test_3 (_mm256_mask_cvtt_roundph_epi16, __m256i, __m256i, __mmask16, __m256h, 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)
index c6a1cc36e3c5477048bd163ac8b25767cc247722..115e6970dcff258538407c1ce60e0fa124096d9b 100644 (file)
 #define __builtin_ia32_cvttpd2qq256_mask_round(A, B, C, D) __builtin_ia32_cvttpd2qq256_mask_round(A, B, C, 8)
 #define __builtin_ia32_cvttpd2udq256_mask_round(A, B, C, D) __builtin_ia32_cvttpd2udq256_mask_round(A, B, C, 8)
 #define __builtin_ia32_cvttpd2uqq256_mask_round(A, B, C, D) __builtin_ia32_cvttpd2uqq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2dq256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2dq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2qq256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2qq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2uqq256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2uqq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2udq256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2udq256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2uw256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2uw256_mask_round(A, B, C, 8)
-#define __builtin_ia32_vcvttph2w256_mask_round(A, B, C, D) __builtin_ia32_vcvttph2w256_mask_round(A, B, C, 8)
 
 /* avx10_2-512mediaintrin.h  */
 #define __builtin_ia32_mpsadbw512(A, B, C) __builtin_ia32_mpsadbw512 (A, B, 1)