forked from OSchip/llvm-project
[AVX-512] Replace masked 128/256-bit byte, word, and dword min/max builtins with selects and the older unmasked builtins.
llvm-svn: 284954
This commit is contained in:
parent
9ca028c2d6
commit
eee7c0520c
|
@ -1120,23 +1120,6 @@ TARGET_BUILTIN(__builtin_ia32_vpconflictsi_512_mask, "V16iV16iV16iUs", "", "avx5
|
|||
TARGET_BUILTIN(__builtin_ia32_vplzcntd_512_mask, "V16iV16iV16iUs", "", "avx512cd")
|
||||
TARGET_BUILTIN(__builtin_ia32_vplzcntq_512_mask, "V8LLiV8LLiV8LLiUc", "", "avx512cd")
|
||||
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxsb128_mask, "V16cV16cV16cV16cUs", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxsb256_mask, "V32cV32cV32cV32cUi", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxsw128_mask, "V8sV8sV8sV8sUc", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxsw256_mask, "V16sV16sV16sV16sUs", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxub128_mask, "V16cV16cV16cV16cUs", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxub256_mask, "V32cV32cV32cV32cUi", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxuw128_mask, "V8sV8sV8sV8sUc", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxuw256_mask, "V16sV16sV16sV16sUs", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminsb128_mask, "V16cV16cV16cV16cUs", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminsb256_mask, "V32cV32cV32cV32cUi", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminsw128_mask, "V8sV8sV8sV8sUc", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminsw256_mask, "V16sV16sV16sV16sUs", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminub128_mask, "V16cV16cV16cV16cUs", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminub256_mask, "V32cV32cV32cV32cUi", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminuw128_mask, "V8sV8sV8sV8sUc", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminuw256_mask, "V16sV16sV16sV16sUs", "", "avx512vl,avx512bw")
|
||||
|
||||
TARGET_BUILTIN(__builtin_ia32_vpermi2varhi128_mask, "V8sV8sV8sV8sUc", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_vpermi2varhi256_mask, "V16sV16sV16sV16sUs", "", "avx512vl,avx512bw")
|
||||
TARGET_BUILTIN(__builtin_ia32_vpermt2varhi128_mask, "V8sV8sV8sV8sUc", "", "avx512vl,avx512bw")
|
||||
|
@ -1247,20 +1230,12 @@ TARGET_BUILTIN(__builtin_ia32_minps_mask, "V4fV4fV4fV4fUc", "", "avx512vl")
|
|||
TARGET_BUILTIN(__builtin_ia32_minps256_mask, "V8fV8fV8fV8fUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pabsq128_mask, "V2LLiV2LLiV2LLiUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pabsq256_mask, "V4LLiV4LLiV4LLiUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxsd128_mask, "V4iV4iV4iV4iUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxsd256_mask, "V8iV8iV8iV8iUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxsq128_mask, "V2LLiV2LLiV2LLiV2LLiUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxsq256_mask, "V4LLiV4LLiV4LLiV4LLiUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxud128_mask, "V4iV4iV4iV4iUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxud256_mask, "V8iV8iV8iV8iUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxuq128_mask, "V2LLiV2LLiV2LLiV2LLiUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pmaxuq256_mask, "V4LLiV4LLiV4LLiV4LLiUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminsd128_mask, "V4iV4iV4iV4iUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminsd256_mask, "V8iV8iV8iV8iUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminsq128_mask, "V2LLiV2LLiV2LLiV2LLiUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminsq256_mask, "V4LLiV4LLiV4LLiV4LLiUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminud128_mask, "V4iV4iV4iV4iUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminud256_mask, "V8iV8iV8iV8iUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminuq128_mask, "V2LLiV2LLiV2LLiV2LLiUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_pminuq256_mask, "V4LLiV4LLiV4LLiV4LLiUc", "", "avx512vl")
|
||||
TARGET_BUILTIN(__builtin_ia32_rndscalepd_128_mask, "V2dV2dIiV2dUc", "", "avx512vl")
|
||||
|
|
|
@ -1170,307 +1170,259 @@ _mm256_maskz_avg_epu16(__mmask16 __U, __m256i __A, __m256i __B)
|
|||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_maskz_max_epi8 (__mmask16 __M, __m128i __A, __m128i __B)
|
||||
_mm_maskz_max_epi8(__mmask16 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pmaxsb128_mask ((__v16qi) __A,
|
||||
(__v16qi) __B,
|
||||
(__v16qi) _mm_setzero_si128 (),
|
||||
(__mmask16) __M);
|
||||
return (__m128i)__builtin_ia32_selectb_128((__mmask16)__M,
|
||||
(__v16qi)_mm_max_epi8(__A, __B),
|
||||
(__v16qi)_mm_setzero_si128());
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_mask_max_epi8 (__m128i __W, __mmask16 __M, __m128i __A,
|
||||
__m128i __B)
|
||||
_mm_mask_max_epi8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pmaxsb128_mask ((__v16qi) __A,
|
||||
(__v16qi) __B,
|
||||
(__v16qi) __W,
|
||||
(__mmask16) __M);
|
||||
return (__m128i)__builtin_ia32_selectb_128((__mmask16)__M,
|
||||
(__v16qi)_mm_max_epi8(__A, __B),
|
||||
(__v16qi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_maskz_max_epi8 (__mmask32 __M, __m256i __A, __m256i __B)
|
||||
_mm256_maskz_max_epi8(__mmask32 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pmaxsb256_mask ((__v32qi) __A,
|
||||
(__v32qi) __B,
|
||||
(__v32qi) _mm256_setzero_si256 (),
|
||||
(__mmask32) __M);
|
||||
return (__m256i)__builtin_ia32_selectb_256((__mmask32)__M,
|
||||
(__v32qi)_mm256_max_epi8(__A, __B),
|
||||
(__v32qi)_mm256_setzero_si256());
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_mask_max_epi8 (__m256i __W, __mmask32 __M, __m256i __A,
|
||||
__m256i __B)
|
||||
_mm256_mask_max_epi8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pmaxsb256_mask ((__v32qi) __A,
|
||||
(__v32qi) __B,
|
||||
(__v32qi) __W,
|
||||
(__mmask32) __M);
|
||||
return (__m256i)__builtin_ia32_selectb_256((__mmask32)__M,
|
||||
(__v32qi)_mm256_max_epi8(__A, __B),
|
||||
(__v32qi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_maskz_max_epi16 (__mmask8 __M, __m128i __A, __m128i __B)
|
||||
_mm_maskz_max_epi16(__mmask8 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pmaxsw128_mask ((__v8hi) __A,
|
||||
(__v8hi) __B,
|
||||
(__v8hi) _mm_setzero_si128 (),
|
||||
(__mmask8) __M);
|
||||
return (__m128i)__builtin_ia32_selectw_128((__mmask8)__M,
|
||||
(__v8hi)_mm_max_epi16(__A, __B),
|
||||
(__v8hi)_mm_setzero_si128());
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_mask_max_epi16 (__m128i __W, __mmask8 __M, __m128i __A,
|
||||
__m128i __B)
|
||||
_mm_mask_max_epi16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pmaxsw128_mask ((__v8hi) __A,
|
||||
(__v8hi) __B,
|
||||
(__v8hi) __W,
|
||||
(__mmask8) __M);
|
||||
return (__m128i)__builtin_ia32_selectw_128((__mmask8)__M,
|
||||
(__v8hi)_mm_max_epi16(__A, __B),
|
||||
(__v8hi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_maskz_max_epi16 (__mmask16 __M, __m256i __A, __m256i __B)
|
||||
_mm256_maskz_max_epi16(__mmask16 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pmaxsw256_mask ((__v16hi) __A,
|
||||
(__v16hi) __B,
|
||||
(__v16hi) _mm256_setzero_si256 (),
|
||||
(__mmask16) __M);
|
||||
return (__m256i)__builtin_ia32_selectw_256((__mmask16)__M,
|
||||
(__v16hi)_mm256_max_epi16(__A, __B),
|
||||
(__v16hi)_mm256_setzero_si256());
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_mask_max_epi16 (__m256i __W, __mmask16 __M, __m256i __A,
|
||||
__m256i __B)
|
||||
_mm256_mask_max_epi16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pmaxsw256_mask ((__v16hi) __A,
|
||||
(__v16hi) __B,
|
||||
(__v16hi) __W,
|
||||
(__mmask16) __M);
|
||||
return (__m256i)__builtin_ia32_selectw_256((__mmask16)__M,
|
||||
(__v16hi)_mm256_max_epi16(__A, __B),
|
||||
(__v16hi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_maskz_max_epu8 (__mmask16 __M, __m128i __A, __m128i __B)
|
||||
_mm_maskz_max_epu8(__mmask16 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pmaxub128_mask ((__v16qi) __A,
|
||||
(__v16qi) __B,
|
||||
(__v16qi) _mm_setzero_si128 (),
|
||||
(__mmask16) __M);
|
||||
return (__m128i)__builtin_ia32_selectb_128((__mmask16)__M,
|
||||
(__v16qi)_mm_max_epu8(__A, __B),
|
||||
(__v16qi)_mm_setzero_si128());
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_mask_max_epu8 (__m128i __W, __mmask16 __M, __m128i __A,
|
||||
__m128i __B)
|
||||
_mm_mask_max_epu8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pmaxub128_mask ((__v16qi) __A,
|
||||
(__v16qi) __B,
|
||||
(__v16qi) __W,
|
||||
(__mmask16) __M);
|
||||
return (__m128i)__builtin_ia32_selectb_128((__mmask16)__M,
|
||||
(__v16qi)_mm_max_epu8(__A, __B),
|
||||
(__v16qi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_maskz_max_epu8 (__mmask32 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pmaxub256_mask ((__v32qi) __A,
|
||||
(__v32qi) __B,
|
||||
(__v32qi) _mm256_setzero_si256 (),
|
||||
(__mmask32) __M);
|
||||
return (__m256i)__builtin_ia32_selectb_256((__mmask32)__M,
|
||||
(__v32qi)_mm256_max_epu8(__A, __B),
|
||||
(__v32qi)_mm256_setzero_si256());
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_mask_max_epu8 (__m256i __W, __mmask32 __M, __m256i __A,
|
||||
__m256i __B)
|
||||
_mm256_mask_max_epu8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pmaxub256_mask ((__v32qi) __A,
|
||||
(__v32qi) __B,
|
||||
(__v32qi) __W,
|
||||
(__mmask32) __M);
|
||||
return (__m256i)__builtin_ia32_selectb_256((__mmask32)__M,
|
||||
(__v32qi)_mm256_max_epu8(__A, __B),
|
||||
(__v32qi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_maskz_max_epu16 (__mmask8 __M, __m128i __A, __m128i __B)
|
||||
_mm_maskz_max_epu16(__mmask8 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pmaxuw128_mask ((__v8hi) __A,
|
||||
(__v8hi) __B,
|
||||
(__v8hi) _mm_setzero_si128 (),
|
||||
(__mmask8) __M);
|
||||
return (__m128i)__builtin_ia32_selectw_128((__mmask8)__M,
|
||||
(__v8hi)_mm_max_epu16(__A, __B),
|
||||
(__v8hi)_mm_setzero_si128());
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_mask_max_epu16 (__m128i __W, __mmask8 __M, __m128i __A,
|
||||
__m128i __B)
|
||||
_mm_mask_max_epu16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pmaxuw128_mask ((__v8hi) __A,
|
||||
(__v8hi) __B,
|
||||
(__v8hi) __W,
|
||||
(__mmask8) __M);
|
||||
return (__m128i)__builtin_ia32_selectw_128((__mmask8)__M,
|
||||
(__v8hi)_mm_max_epu16(__A, __B),
|
||||
(__v8hi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_maskz_max_epu16 (__mmask16 __M, __m256i __A, __m256i __B)
|
||||
_mm256_maskz_max_epu16(__mmask16 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pmaxuw256_mask ((__v16hi) __A,
|
||||
(__v16hi) __B,
|
||||
(__v16hi) _mm256_setzero_si256 (),
|
||||
(__mmask16) __M);
|
||||
return (__m256i)__builtin_ia32_selectw_256((__mmask16)__M,
|
||||
(__v16hi)_mm256_max_epu16(__A, __B),
|
||||
(__v16hi)_mm256_setzero_si256());
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_mask_max_epu16 (__m256i __W, __mmask16 __M, __m256i __A,
|
||||
__m256i __B)
|
||||
_mm256_mask_max_epu16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pmaxuw256_mask ((__v16hi) __A,
|
||||
(__v16hi) __B,
|
||||
(__v16hi) __W,
|
||||
(__mmask16) __M);
|
||||
return (__m256i)__builtin_ia32_selectw_256((__mmask16)__M,
|
||||
(__v16hi)_mm256_max_epu16(__A, __B),
|
||||
(__v16hi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_maskz_min_epi8 (__mmask16 __M, __m128i __A, __m128i __B)
|
||||
_mm_maskz_min_epi8(__mmask16 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pminsb128_mask ((__v16qi) __A,
|
||||
(__v16qi) __B,
|
||||
(__v16qi) _mm_setzero_si128 (),
|
||||
(__mmask16) __M);
|
||||
return (__m128i)__builtin_ia32_selectb_128((__mmask16)__M,
|
||||
(__v16qi)_mm_min_epi8(__A, __B),
|
||||
(__v16qi)_mm_setzero_si128());
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_mask_min_epi8 (__m128i __W, __mmask16 __M, __m128i __A,
|
||||
__m128i __B)
|
||||
_mm_mask_min_epi8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pminsb128_mask ((__v16qi) __A,
|
||||
(__v16qi) __B,
|
||||
(__v16qi) __W,
|
||||
(__mmask16) __M);
|
||||
return (__m128i)__builtin_ia32_selectb_128((__mmask16)__M,
|
||||
(__v16qi)_mm_min_epi8(__A, __B),
|
||||
(__v16qi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_maskz_min_epi8 (__mmask32 __M, __m256i __A, __m256i __B)
|
||||
_mm256_maskz_min_epi8(__mmask32 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pminsb256_mask ((__v32qi) __A,
|
||||
(__v32qi) __B,
|
||||
(__v32qi) _mm256_setzero_si256 (),
|
||||
(__mmask32) __M);
|
||||
return (__m256i)__builtin_ia32_selectb_256((__mmask32)__M,
|
||||
(__v32qi)_mm256_min_epi8(__A, __B),
|
||||
(__v32qi)_mm256_setzero_si256());
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_mask_min_epi8 (__m256i __W, __mmask32 __M, __m256i __A,
|
||||
__m256i __B)
|
||||
_mm256_mask_min_epi8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pminsb256_mask ((__v32qi) __A,
|
||||
(__v32qi) __B,
|
||||
(__v32qi) __W,
|
||||
(__mmask32) __M);
|
||||
return (__m256i)__builtin_ia32_selectb_256((__mmask32)__M,
|
||||
(__v32qi)_mm256_min_epi8(__A, __B),
|
||||
(__v32qi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_maskz_min_epi16 (__mmask8 __M, __m128i __A, __m128i __B)
|
||||
_mm_maskz_min_epi16(__mmask8 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pminsw128_mask ((__v8hi) __A,
|
||||
(__v8hi) __B,
|
||||
(__v8hi) _mm_setzero_si128 (),
|
||||
(__mmask8) __M);
|
||||
return (__m128i)__builtin_ia32_selectw_128((__mmask8)__M,
|
||||
(__v8hi)_mm_min_epi16(__A, __B),
|
||||
(__v8hi)_mm_setzero_si128());
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_mask_min_epi16 (__m128i __W, __mmask8 __M, __m128i __A,
|
||||
__m128i __B)
|
||||
_mm_mask_min_epi16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pminsw128_mask ((__v8hi) __A,
|
||||
(__v8hi) __B,
|
||||
(__v8hi) __W,
|
||||
(__mmask8) __M);
|
||||
return (__m128i)__builtin_ia32_selectw_128((__mmask8)__M,
|
||||
(__v8hi)_mm_min_epi16(__A, __B),
|
||||
(__v8hi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_maskz_min_epi16 (__mmask16 __M, __m256i __A, __m256i __B)
|
||||
_mm256_maskz_min_epi16(__mmask16 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pminsw256_mask ((__v16hi) __A,
|
||||
(__v16hi) __B,
|
||||
(__v16hi) _mm256_setzero_si256 (),
|
||||
(__mmask16) __M);
|
||||
return (__m256i)__builtin_ia32_selectw_256((__mmask16)__M,
|
||||
(__v16hi)_mm256_min_epi16(__A, __B),
|
||||
(__v16hi)_mm256_setzero_si256());
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_mask_min_epi16 (__m256i __W, __mmask16 __M, __m256i __A,
|
||||
__m256i __B)
|
||||
_mm256_mask_min_epi16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pminsw256_mask ((__v16hi) __A,
|
||||
(__v16hi) __B,
|
||||
(__v16hi) __W,
|
||||
(__mmask16) __M);
|
||||
return (__m256i)__builtin_ia32_selectw_256((__mmask16)__M,
|
||||
(__v16hi)_mm256_min_epi16(__A, __B),
|
||||
(__v16hi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_maskz_min_epu8 (__mmask16 __M, __m128i __A, __m128i __B)
|
||||
_mm_maskz_min_epu8(__mmask16 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pminub128_mask ((__v16qi) __A,
|
||||
(__v16qi) __B,
|
||||
(__v16qi) _mm_setzero_si128 (),
|
||||
(__mmask16) __M);
|
||||
return (__m128i)__builtin_ia32_selectb_128((__mmask16)__M,
|
||||
(__v16qi)_mm_min_epu8(__A, __B),
|
||||
(__v16qi)_mm_setzero_si128());
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_mask_min_epu8 (__m128i __W, __mmask16 __M, __m128i __A,
|
||||
__m128i __B)
|
||||
_mm_mask_min_epu8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pminub128_mask ((__v16qi) __A,
|
||||
(__v16qi) __B,
|
||||
(__v16qi) __W,
|
||||
(__mmask16) __M);
|
||||
return (__m128i)__builtin_ia32_selectb_128((__mmask16)__M,
|
||||
(__v16qi)_mm_min_epu8(__A, __B),
|
||||
(__v16qi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_maskz_min_epu8 (__mmask32 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pminub256_mask ((__v32qi) __A,
|
||||
(__v32qi) __B,
|
||||
(__v32qi) _mm256_setzero_si256 (),
|
||||
(__mmask32) __M);
|
||||
return (__m256i)__builtin_ia32_selectb_256((__mmask32)__M,
|
||||
(__v32qi)_mm256_min_epu8(__A, __B),
|
||||
(__v32qi)_mm256_setzero_si256());
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_mask_min_epu8 (__m256i __W, __mmask32 __M, __m256i __A,
|
||||
__m256i __B)
|
||||
_mm256_mask_min_epu8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pminub256_mask ((__v32qi) __A,
|
||||
(__v32qi) __B,
|
||||
(__v32qi) __W,
|
||||
(__mmask32) __M);
|
||||
return (__m256i)__builtin_ia32_selectb_256((__mmask32)__M,
|
||||
(__v32qi)_mm256_min_epu8(__A, __B),
|
||||
(__v32qi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_maskz_min_epu16 (__mmask8 __M, __m128i __A, __m128i __B)
|
||||
_mm_maskz_min_epu16(__mmask8 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pminuw128_mask ((__v8hi) __A,
|
||||
(__v8hi) __B,
|
||||
(__v8hi) _mm_setzero_si128 (),
|
||||
(__mmask8) __M);
|
||||
return (__m128i)__builtin_ia32_selectw_128((__mmask8)__M,
|
||||
(__v8hi)_mm_min_epu16(__A, __B),
|
||||
(__v8hi)_mm_setzero_si128());
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_mask_min_epu16 (__m128i __W, __mmask8 __M, __m128i __A,
|
||||
__m128i __B)
|
||||
_mm_mask_min_epu16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B)
|
||||
{
|
||||
return (__m128i) __builtin_ia32_pminuw128_mask ((__v8hi) __A,
|
||||
(__v8hi) __B,
|
||||
(__v8hi) __W,
|
||||
(__mmask8) __M);
|
||||
return (__m128i)__builtin_ia32_selectw_128((__mmask8)__M,
|
||||
(__v8hi)_mm_min_epu16(__A, __B),
|
||||
(__v8hi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_maskz_min_epu16 (__mmask16 __M, __m256i __A, __m256i __B)
|
||||
_mm256_maskz_min_epu16(__mmask16 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pminuw256_mask ((__v16hi) __A,
|
||||
(__v16hi) __B,
|
||||
(__v16hi) _mm256_setzero_si256 (),
|
||||
(__mmask16) __M);
|
||||
return (__m256i)__builtin_ia32_selectw_256((__mmask16)__M,
|
||||
(__v16hi)_mm256_min_epu16(__A, __B),
|
||||
(__v16hi)_mm256_setzero_si256());
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_mask_min_epu16 (__m256i __W, __mmask16 __M, __m256i __A,
|
||||
__m256i __B)
|
||||
_mm256_mask_min_epu16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B)
|
||||
{
|
||||
return (__m256i) __builtin_ia32_pminuw256_mask ((__v16hi) __A,
|
||||
(__v16hi) __B,
|
||||
(__v16hi) __W,
|
||||
(__mmask16) __M);
|
||||
return (__m256i)__builtin_ia32_selectw_256((__mmask16)__M,
|
||||
(__v16hi)_mm256_min_epu16(__A, __B),
|
||||
(__v16hi)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
|
|
|
@ -3332,37 +3332,31 @@ _mm256_maskz_abs_epi64 (__mmask8 __U, __m256i __A) {
|
|||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_maskz_max_epi32 (__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
return (__m128i) __builtin_ia32_pmaxsd128_mask ((__v4si) __A,
|
||||
(__v4si) __B,
|
||||
(__v4si)
|
||||
_mm_setzero_si128 (),
|
||||
__M);
|
||||
_mm_maskz_max_epi32(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
return (__m128i)__builtin_ia32_selectd_128((__mmask8)__M,
|
||||
(__v4si)_mm_max_epi32(__A, __B),
|
||||
(__v4si)_mm_setzero_si128());
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_mask_max_epi32 (__m128i __W, __mmask8 __M, __m128i __A,
|
||||
__m128i __B) {
|
||||
return (__m128i) __builtin_ia32_pmaxsd128_mask ((__v4si) __A,
|
||||
(__v4si) __B,
|
||||
(__v4si) __W, __M);
|
||||
_mm_mask_max_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) {
|
||||
return (__m128i)__builtin_ia32_selectd_128((__mmask8)__M,
|
||||
(__v4si)_mm_max_epi32(__A, __B),
|
||||
(__v4si)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_maskz_max_epi32 (__mmask8 __M, __m256i __A, __m256i __B) {
|
||||
return (__m256i) __builtin_ia32_pmaxsd256_mask ((__v8si) __A,
|
||||
(__v8si) __B,
|
||||
(__v8si)
|
||||
_mm256_setzero_si256 (),
|
||||
__M);
|
||||
_mm256_maskz_max_epi32(__mmask8 __M, __m256i __A, __m256i __B) {
|
||||
return (__m256i)__builtin_ia32_selectd_256((__mmask8)__M,
|
||||
(__v8si)_mm256_max_epi32(__A, __B),
|
||||
(__v8si)_mm256_setzero_si256());
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_mask_max_epi32 (__m256i __W, __mmask8 __M, __m256i __A,
|
||||
__m256i __B) {
|
||||
return (__m256i) __builtin_ia32_pmaxsd256_mask ((__v8si) __A,
|
||||
(__v8si) __B,
|
||||
(__v8si) __W, __M);
|
||||
_mm256_mask_max_epi32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) {
|
||||
return (__m256i)__builtin_ia32_selectd_256((__mmask8)__M,
|
||||
(__v8si)_mm256_max_epi32(__A, __B),
|
||||
(__v8si)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
|
@ -3418,37 +3412,31 @@ _mm256_max_epi64 (__m256i __A, __m256i __B) {
|
|||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_maskz_max_epu32 (__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
return (__m128i) __builtin_ia32_pmaxud128_mask ((__v4si) __A,
|
||||
(__v4si) __B,
|
||||
(__v4si)
|
||||
_mm_setzero_si128 (),
|
||||
__M);
|
||||
_mm_maskz_max_epu32(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
return (__m128i)__builtin_ia32_selectd_128((__mmask8)__M,
|
||||
(__v4si)_mm_max_epu32(__A, __B),
|
||||
(__v4si)_mm_setzero_si128());
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_mask_max_epu32 (__m128i __W, __mmask8 __M, __m128i __A,
|
||||
__m128i __B) {
|
||||
return (__m128i) __builtin_ia32_pmaxud128_mask ((__v4si) __A,
|
||||
(__v4si) __B,
|
||||
(__v4si) __W, __M);
|
||||
_mm_mask_max_epu32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) {
|
||||
return (__m128i)__builtin_ia32_selectd_128((__mmask8)__M,
|
||||
(__v4si)_mm_max_epu32(__A, __B),
|
||||
(__v4si)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_maskz_max_epu32 (__mmask8 __M, __m256i __A, __m256i __B) {
|
||||
return (__m256i) __builtin_ia32_pmaxud256_mask ((__v8si) __A,
|
||||
(__v8si) __B,
|
||||
(__v8si)
|
||||
_mm256_setzero_si256 (),
|
||||
__M);
|
||||
_mm256_maskz_max_epu32(__mmask8 __M, __m256i __A, __m256i __B) {
|
||||
return (__m256i)__builtin_ia32_selectd_256((__mmask8)__M,
|
||||
(__v8si)_mm256_max_epu32(__A, __B),
|
||||
(__v8si)_mm256_setzero_si256());
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_mask_max_epu32 (__m256i __W, __mmask8 __M, __m256i __A,
|
||||
__m256i __B) {
|
||||
return (__m256i) __builtin_ia32_pmaxud256_mask ((__v8si) __A,
|
||||
(__v8si) __B,
|
||||
(__v8si) __W, __M);
|
||||
_mm256_mask_max_epu32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) {
|
||||
return (__m256i)__builtin_ia32_selectd_256((__mmask8)__M,
|
||||
(__v8si)_mm256_max_epu32(__A, __B),
|
||||
(__v8si)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
|
@ -3504,37 +3492,31 @@ _mm256_mask_max_epu64 (__m256i __W, __mmask8 __M, __m256i __A,
|
|||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_maskz_min_epi32 (__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
return (__m128i) __builtin_ia32_pminsd128_mask ((__v4si) __A,
|
||||
(__v4si) __B,
|
||||
(__v4si)
|
||||
_mm_setzero_si128 (),
|
||||
__M);
|
||||
_mm_maskz_min_epi32(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
return (__m128i)__builtin_ia32_selectd_128((__mmask8)__M,
|
||||
(__v4si)_mm_min_epi32(__A, __B),
|
||||
(__v4si)_mm_setzero_si128());
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_mask_min_epi32 (__m128i __W, __mmask8 __M, __m128i __A,
|
||||
__m128i __B) {
|
||||
return (__m128i) __builtin_ia32_pminsd128_mask ((__v4si) __A,
|
||||
(__v4si) __B,
|
||||
(__v4si) __W, __M);
|
||||
_mm_mask_min_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) {
|
||||
return (__m128i)__builtin_ia32_selectd_128((__mmask8)__M,
|
||||
(__v4si)_mm_min_epi32(__A, __B),
|
||||
(__v4si)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_maskz_min_epi32 (__mmask8 __M, __m256i __A, __m256i __B) {
|
||||
return (__m256i) __builtin_ia32_pminsd256_mask ((__v8si) __A,
|
||||
(__v8si) __B,
|
||||
(__v8si)
|
||||
_mm256_setzero_si256 (),
|
||||
__M);
|
||||
_mm256_maskz_min_epi32(__mmask8 __M, __m256i __A, __m256i __B) {
|
||||
return (__m256i)__builtin_ia32_selectd_256((__mmask8)__M,
|
||||
(__v8si)_mm256_min_epi32(__A, __B),
|
||||
(__v8si)_mm256_setzero_si256());
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_mask_min_epi32 (__m256i __W, __mmask8 __M, __m256i __A,
|
||||
__m256i __B) {
|
||||
return (__m256i) __builtin_ia32_pminsd256_mask ((__v8si) __A,
|
||||
(__v8si) __B,
|
||||
(__v8si) __W, __M);
|
||||
_mm256_mask_min_epi32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) {
|
||||
return (__m256i)__builtin_ia32_selectd_256((__mmask8)__M,
|
||||
(__v8si)_mm256_min_epi32(__A, __B),
|
||||
(__v8si)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
|
@ -3590,37 +3572,31 @@ _mm256_maskz_min_epi64 (__mmask8 __M, __m256i __A, __m256i __B) {
|
|||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_maskz_min_epu32 (__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
return (__m128i) __builtin_ia32_pminud128_mask ((__v4si) __A,
|
||||
(__v4si) __B,
|
||||
(__v4si)
|
||||
_mm_setzero_si128 (),
|
||||
__M);
|
||||
_mm_maskz_min_epu32(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
return (__m128i)__builtin_ia32_selectd_128((__mmask8)__M,
|
||||
(__v4si)_mm_min_epu32(__A, __B),
|
||||
(__v4si)_mm_setzero_si128());
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
_mm_mask_min_epu32 (__m128i __W, __mmask8 __M, __m128i __A,
|
||||
__m128i __B) {
|
||||
return (__m128i) __builtin_ia32_pminud128_mask ((__v4si) __A,
|
||||
(__v4si) __B,
|
||||
(__v4si) __W, __M);
|
||||
_mm_mask_min_epu32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) {
|
||||
return (__m128i)__builtin_ia32_selectd_128((__mmask8)__M,
|
||||
(__v4si)_mm_min_epu32(__A, __B),
|
||||
(__v4si)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_maskz_min_epu32 (__mmask8 __M, __m256i __A, __m256i __B) {
|
||||
return (__m256i) __builtin_ia32_pminud256_mask ((__v8si) __A,
|
||||
(__v8si) __B,
|
||||
(__v8si)
|
||||
_mm256_setzero_si256 (),
|
||||
__M);
|
||||
_mm256_maskz_min_epu32(__mmask8 __M, __m256i __A, __m256i __B) {
|
||||
return (__m256i)__builtin_ia32_selectd_256((__mmask8)__M,
|
||||
(__v8si)_mm256_min_epu32(__A, __B),
|
||||
(__v8si)_mm256_setzero_si256());
|
||||
}
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_mask_min_epu32 (__m256i __W, __mmask8 __M, __m256i __A,
|
||||
__m256i __B) {
|
||||
return (__m256i) __builtin_ia32_pminud256_mask ((__v8si) __A,
|
||||
(__v8si) __B,
|
||||
(__v8si) __W, __M);
|
||||
_mm256_mask_min_epu32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) {
|
||||
return (__m256i)__builtin_ia32_selectd_256((__mmask8)__M,
|
||||
(__v8si)_mm256_min_epu32(__A, __B),
|
||||
(__v8si)__W);
|
||||
}
|
||||
|
||||
static __inline__ __m128i __DEFAULT_FN_ATTRS
|
||||
|
|
|
@ -2519,22 +2519,30 @@ __m256i test_mm256_maskz_abs_epi64(__mmask8 __U, __m256i __A) {
|
|||
}
|
||||
__m128i test_mm_maskz_max_epi32(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_maskz_max_epi32
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxs.d.128
|
||||
// CHECK: [[CMP:%.*]] = icmp sgt <4 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <4 x i1> [[CMP]], <4 x i32> [[X]], <4 x i32> [[Y]]
|
||||
// CHECK: select <4 x i1> {{.*}}, <4 x i32> [[RES]], <4 x i32> {{.*}}
|
||||
return _mm_maskz_max_epi32(__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_max_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_mask_max_epi32
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxs.d.128
|
||||
// CHECK: [[CMP:%.*]] = icmp sgt <4 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <4 x i1> [[CMP]], <4 x i32> [[X]], <4 x i32> [[Y]]
|
||||
// CHECK: select <4 x i1> {{.*}}, <4 x i32> [[RES]], <4 x i32> {{.*}}
|
||||
return _mm_mask_max_epi32(__W,__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_maskz_max_epi32(__mmask8 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_maskz_max_epi32
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxs.d.256
|
||||
// CHECK: [[CMP:%.*]] = icmp sgt <8 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i32> [[X]], <8 x i32> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i32> [[RES]], <8 x i32> {{.*}}
|
||||
return _mm256_maskz_max_epi32(__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_mask_max_epi32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_mask_max_epi32
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxs.d.256
|
||||
// CHECK: [[CMP:%.*]] = icmp sgt <8 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i32> [[X]], <8 x i32> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i32> [[RES]], <8 x i32> {{.*}}
|
||||
return _mm256_mask_max_epi32(__W,__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_maskz_max_epi64(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
|
@ -2569,22 +2577,30 @@ __m256i test_mm256_max_epi64(__m256i __A, __m256i __B) {
|
|||
}
|
||||
__m128i test_mm_maskz_max_epu32(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_maskz_max_epu32
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxu.d.128
|
||||
// CHECK: [[CMP:%.*]] = icmp ugt <4 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <4 x i1> [[CMP]], <4 x i32> [[X]], <4 x i32> [[Y]]
|
||||
// CHECK: select <4 x i1> {{.*}}, <4 x i32> [[RES]], <4 x i32> {{.*}}
|
||||
return _mm_maskz_max_epu32(__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_max_epu32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_mask_max_epu32
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxu.d.128
|
||||
// CHECK: [[CMP:%.*]] = icmp ugt <4 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <4 x i1> [[CMP]], <4 x i32> [[X]], <4 x i32> [[Y]]
|
||||
// CHECK: select <4 x i1> {{.*}}, <4 x i32> [[RES]], <4 x i32> {{.*}}
|
||||
return _mm_mask_max_epu32(__W,__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_maskz_max_epu32(__mmask8 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_maskz_max_epu32
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxu.d.256
|
||||
// CHECK: [[CMP:%.*]] = icmp ugt <8 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i32> [[X]], <8 x i32> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i32> [[RES]], <8 x i32> {{.*}}
|
||||
return _mm256_maskz_max_epu32(__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_mask_max_epu32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_mask_max_epu32
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxu.d.256
|
||||
// CHECK: [[CMP:%.*]] = icmp ugt <8 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i32> [[X]], <8 x i32> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i32> [[RES]], <8 x i32> {{.*}}
|
||||
return _mm256_mask_max_epu32(__W,__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_maskz_max_epu64(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
|
@ -2619,22 +2635,30 @@ __m256i test_mm256_mask_max_epu64(__m256i __W, __mmask8 __M, __m256i __A, __m256
|
|||
}
|
||||
__m128i test_mm_maskz_min_epi32(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_maskz_min_epi32
|
||||
// CHECK: @llvm.x86.avx512.mask.pmins.d.128
|
||||
// CHECK: [[CMP:%.*]] = icmp slt <4 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <4 x i1> [[CMP]], <4 x i32> [[X]], <4 x i32> [[Y]]
|
||||
// CHECK: select <4 x i1> {{.*}}, <4 x i32> [[RES]], <4 x i32> {{.*}}
|
||||
return _mm_maskz_min_epi32(__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_min_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_mask_min_epi32
|
||||
// CHECK: @llvm.x86.avx512.mask.pmins.d.128
|
||||
// CHECK: [[CMP:%.*]] = icmp slt <4 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <4 x i1> [[CMP]], <4 x i32> [[X]], <4 x i32> [[Y]]
|
||||
// CHECK: select <4 x i1> {{.*}}, <4 x i32> [[RES]], <4 x i32> {{.*}}
|
||||
return _mm_mask_min_epi32(__W,__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_maskz_min_epi32(__mmask8 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_maskz_min_epi32
|
||||
// CHECK: @llvm.x86.avx512.mask.pmins.d.256
|
||||
// CHECK: [[CMP:%.*]] = icmp slt <8 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i32> [[X]], <8 x i32> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i32> [[RES]], <8 x i32> {{.*}}
|
||||
return _mm256_maskz_min_epi32(__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_mask_min_epi32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_mask_min_epi32
|
||||
// CHECK: @llvm.x86.avx512.mask.pmins.d.256
|
||||
// CHECK: [[CMP:%.*]] = icmp slt <8 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i32> [[X]], <8 x i32> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i32> [[RES]], <8 x i32> {{.*}}
|
||||
return _mm256_mask_min_epi32(__W,__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_min_epi64(__m128i __A, __m128i __B) {
|
||||
|
@ -2669,22 +2693,30 @@ __m256i test_mm256_maskz_min_epi64(__mmask8 __M, __m256i __A, __m256i __B) {
|
|||
}
|
||||
__m128i test_mm_maskz_min_epu32(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_maskz_min_epu32
|
||||
// CHECK: @llvm.x86.avx512.mask.pminu.d.128
|
||||
// CHECK: [[CMP:%.*]] = icmp ult <4 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <4 x i1> [[CMP]], <4 x i32> [[X]], <4 x i32> [[Y]]
|
||||
// CHECK: select <4 x i1> {{.*}}, <4 x i32> [[RES]], <4 x i32> {{.*}}
|
||||
return _mm_maskz_min_epu32(__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_min_epu32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_mask_min_epu32
|
||||
// CHECK: @llvm.x86.avx512.mask.pminu.d.128
|
||||
// CHECK: [[CMP:%.*]] = icmp ult <4 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <4 x i1> [[CMP]], <4 x i32> [[X]], <4 x i32> [[Y]]
|
||||
// CHECK: select <4 x i1> {{.*}}, <4 x i32> [[RES]], <4 x i32> {{.*}}
|
||||
return _mm_mask_min_epu32(__W,__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_maskz_min_epu32(__mmask8 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_maskz_min_epu32
|
||||
// CHECK: @llvm.x86.avx512.mask.pminu.d.256
|
||||
// CHECK: [[CMP:%.*]] = icmp ult <8 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i32> [[X]], <8 x i32> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i32> [[RES]], <8 x i32> {{.*}}
|
||||
return _mm256_maskz_min_epu32(__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_mask_min_epu32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_mask_min_epu32
|
||||
// CHECK: @llvm.x86.avx512.mask.pminu.d.256
|
||||
// CHECK: [[CMP:%.*]] = icmp ult <8 x i32> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i32> [[X]], <8 x i32> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i32> [[RES]], <8 x i32> {{.*}}
|
||||
return _mm256_mask_min_epu32(__W,__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_min_epu64(__m128i __A, __m128i __B) {
|
||||
|
|
|
@ -1203,162 +1203,226 @@ __m256i test_mm256_maskz_avg_epu16(__mmask16 __U, __m256i __A, __m256i __B) {
|
|||
}
|
||||
__m128i test_mm_maskz_max_epi8(__mmask16 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_maskz_max_epi8
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxs.b.128
|
||||
// CHECK: [[CMP:%.*]] = icmp sgt <16 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i8> [[X]], <16 x i8> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i8> [[RES]], <16 x i8> {{.*}}
|
||||
return _mm_maskz_max_epi8(__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_max_epi8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_mask_max_epi8
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxs.b.128
|
||||
// CHECK: [[CMP:%.*]] = icmp sgt <16 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i8> [[X]], <16 x i8> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i8> [[RES]], <16 x i8> {{.*}}
|
||||
return _mm_mask_max_epi8(__W,__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_maskz_max_epi8(__mmask32 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_maskz_max_epi8
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxs.b.256
|
||||
// CHECK: [[CMP:%.*]] = icmp sgt <32 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <32 x i1> [[CMP]], <32 x i8> [[X]], <32 x i8> [[Y]]
|
||||
// CHECK: select <32 x i1> {{.*}}, <32 x i8> [[RES]], <32 x i8> {{.*}}
|
||||
return _mm256_maskz_max_epi8(__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_mask_max_epi8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_mask_max_epi8
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxs.b.256
|
||||
// CHECK: [[CMP:%.*]] = icmp sgt <32 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <32 x i1> [[CMP]], <32 x i8> [[X]], <32 x i8> [[Y]]
|
||||
// CHECK: select <32 x i1> {{.*}}, <32 x i8> [[RES]], <32 x i8> {{.*}}
|
||||
return _mm256_mask_max_epi8(__W,__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_maskz_max_epi16(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_maskz_max_epi16
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxs.w.128
|
||||
// CHECK: [[CMP:%.*]] = icmp sgt <8 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i16> [[X]], <8 x i16> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i16> [[RES]], <8 x i16> {{.*}}
|
||||
return _mm_maskz_max_epi16(__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_max_epi16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_mask_max_epi16
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxs.w.128
|
||||
// CHECK: [[CMP:%.*]] = icmp sgt <8 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i16> [[X]], <8 x i16> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i16> [[RES]], <8 x i16> {{.*}}
|
||||
return _mm_mask_max_epi16(__W,__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_maskz_max_epi16(__mmask16 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_maskz_max_epi16
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxs.w.256
|
||||
// CHECK: [[CMP:%.*]] = icmp sgt <16 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i16> [[X]], <16 x i16> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i16> [[RES]], <16 x i16> {{.*}}
|
||||
return _mm256_maskz_max_epi16(__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_mask_max_epi16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_mask_max_epi16
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxs.w.256
|
||||
// CHECK: [[CMP:%.*]] = icmp sgt <16 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i16> [[X]], <16 x i16> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i16> [[RES]], <16 x i16> {{.*}}
|
||||
return _mm256_mask_max_epi16(__W,__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_maskz_max_epu8(__mmask16 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_maskz_max_epu8
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxu.b.128
|
||||
// CHECK: [[CMP:%.*]] = icmp ugt <16 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i8> [[X]], <16 x i8> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i8> [[RES]], <16 x i8> {{.*}}
|
||||
return _mm_maskz_max_epu8(__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_max_epu8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_mask_max_epu8
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxu.b.128
|
||||
// CHECK: [[CMP:%.*]] = icmp ugt <16 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i8> [[X]], <16 x i8> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i8> [[RES]], <16 x i8> {{.*}}
|
||||
return _mm_mask_max_epu8(__W,__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_maskz_max_epu8(__mmask32 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_maskz_max_epu8
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxu.b.256
|
||||
// CHECK: [[CMP:%.*]] = icmp ugt <32 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <32 x i1> [[CMP]], <32 x i8> [[X]], <32 x i8> [[Y]]
|
||||
// CHECK: select <32 x i1> {{.*}}, <32 x i8> [[RES]], <32 x i8> {{.*}}
|
||||
return _mm256_maskz_max_epu8(__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_mask_max_epu8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_mask_max_epu8
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxu.b.256
|
||||
// CHECK: [[CMP:%.*]] = icmp ugt <32 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <32 x i1> [[CMP]], <32 x i8> [[X]], <32 x i8> [[Y]]
|
||||
// CHECK: select <32 x i1> {{.*}}, <32 x i8> [[RES]], <32 x i8> {{.*}}
|
||||
return _mm256_mask_max_epu8(__W,__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_maskz_max_epu16(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_maskz_max_epu16
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxu.w.128
|
||||
// CHECK: [[CMP:%.*]] = icmp ugt <8 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i16> [[X]], <8 x i16> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i16> [[RES]], <8 x i16> {{.*}}
|
||||
return _mm_maskz_max_epu16(__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_max_epu16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_mask_max_epu16
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxu.w.128
|
||||
// CHECK: [[CMP:%.*]] = icmp ugt <8 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i16> [[X]], <8 x i16> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i16> [[RES]], <8 x i16> {{.*}}
|
||||
return _mm_mask_max_epu16(__W,__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_maskz_max_epu16(__mmask16 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_maskz_max_epu16
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxu.w.256
|
||||
// CHECK: [[CMP:%.*]] = icmp ugt <16 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i16> [[X]], <16 x i16> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i16> [[RES]], <16 x i16> {{.*}}
|
||||
return _mm256_maskz_max_epu16(__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_mask_max_epu16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_mask_max_epu16
|
||||
// CHECK: @llvm.x86.avx512.mask.pmaxu.w.256
|
||||
// CHECK: [[CMP:%.*]] = icmp ugt <16 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i16> [[X]], <16 x i16> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i16> [[RES]], <16 x i16> {{.*}}
|
||||
return _mm256_mask_max_epu16(__W,__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_maskz_min_epi8(__mmask16 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_maskz_min_epi8
|
||||
// CHECK: @llvm.x86.avx512.mask.pmins.b.128
|
||||
// CHECK: [[CMP:%.*]] = icmp slt <16 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i8> [[X]], <16 x i8> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i8> [[RES]], <16 x i8> {{.*}}
|
||||
return _mm_maskz_min_epi8(__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_min_epi8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_mask_min_epi8
|
||||
// CHECK: @llvm.x86.avx512.mask.pmins.b.128
|
||||
// CHECK: [[CMP:%.*]] = icmp slt <16 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i8> [[X]], <16 x i8> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i8> [[RES]], <16 x i8> {{.*}}
|
||||
return _mm_mask_min_epi8(__W,__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_maskz_min_epi8(__mmask32 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_maskz_min_epi8
|
||||
// CHECK: @llvm.x86.avx512.mask.pmins.b.256
|
||||
// CHECK: [[CMP:%.*]] = icmp slt <32 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <32 x i1> [[CMP]], <32 x i8> [[X]], <32 x i8> [[Y]]
|
||||
// CHECK: select <32 x i1> {{.*}}, <32 x i8> [[RES]], <32 x i8> {{.*}}
|
||||
return _mm256_maskz_min_epi8(__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_mask_min_epi8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_mask_min_epi8
|
||||
// CHECK: @llvm.x86.avx512.mask.pmins.b.256
|
||||
// CHECK: [[CMP:%.*]] = icmp slt <32 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <32 x i1> [[CMP]], <32 x i8> [[X]], <32 x i8> [[Y]]
|
||||
// CHECK: select <32 x i1> {{.*}}, <32 x i8> [[RES]], <32 x i8> {{.*}}
|
||||
return _mm256_mask_min_epi8(__W,__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_maskz_min_epi16(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_maskz_min_epi16
|
||||
// CHECK: @llvm.x86.avx512.mask.pmins.w.128
|
||||
// CHECK: [[CMP:%.*]] = icmp slt <8 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i16> [[X]], <8 x i16> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i16> [[RES]], <8 x i16> {{.*}}
|
||||
return _mm_maskz_min_epi16(__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_min_epi16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_mask_min_epi16
|
||||
// CHECK: @llvm.x86.avx512.mask.pmins.w.128
|
||||
// CHECK: [[CMP:%.*]] = icmp slt <8 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i16> [[X]], <8 x i16> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i16> [[RES]], <8 x i16> {{.*}}
|
||||
return _mm_mask_min_epi16(__W,__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_maskz_min_epi16(__mmask16 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_maskz_min_epi16
|
||||
// CHECK: @llvm.x86.avx512.mask.pmins.w.256
|
||||
// CHECK: [[CMP:%.*]] = icmp slt <16 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i16> [[X]], <16 x i16> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i16> [[RES]], <16 x i16> {{.*}}
|
||||
return _mm256_maskz_min_epi16(__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_mask_min_epi16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_mask_min_epi16
|
||||
// CHECK: @llvm.x86.avx512.mask.pmins.w.256
|
||||
// CHECK: [[CMP:%.*]] = icmp slt <16 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i16> [[X]], <16 x i16> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i16> [[RES]], <16 x i16> {{.*}}
|
||||
return _mm256_mask_min_epi16(__W,__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_maskz_min_epu8(__mmask16 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_maskz_min_epu8
|
||||
// CHECK: @llvm.x86.avx512.mask.pminu.b.128
|
||||
// CHECK: [[CMP:%.*]] = icmp ult <16 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i8> [[X]], <16 x i8> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i8> [[RES]], <16 x i8> {{.*}}
|
||||
return _mm_maskz_min_epu8(__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_min_epu8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_mask_min_epu8
|
||||
// CHECK: @llvm.x86.avx512.mask.pminu.b.128
|
||||
// CHECK: [[CMP:%.*]] = icmp ult <16 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i8> [[X]], <16 x i8> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i8> [[RES]], <16 x i8> {{.*}}
|
||||
return _mm_mask_min_epu8(__W,__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_maskz_min_epu8(__mmask32 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_maskz_min_epu8
|
||||
// CHECK: @llvm.x86.avx512.mask.pminu.b.256
|
||||
// CHECK: [[CMP:%.*]] = icmp ult <32 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <32 x i1> [[CMP]], <32 x i8> [[X]], <32 x i8> [[Y]]
|
||||
// CHECK: select <32 x i1> {{.*}}, <32 x i8> [[RES]], <32 x i8> {{.*}}
|
||||
return _mm256_maskz_min_epu8(__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_mask_min_epu8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_mask_min_epu8
|
||||
// CHECK: @llvm.x86.avx512.mask.pminu.b.256
|
||||
// CHECK: [[CMP:%.*]] = icmp ult <32 x i8> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <32 x i1> [[CMP]], <32 x i8> [[X]], <32 x i8> [[Y]]
|
||||
// CHECK: select <32 x i1> {{.*}}, <32 x i8> [[RES]], <32 x i8> {{.*}}
|
||||
return _mm256_mask_min_epu8(__W,__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_maskz_min_epu16(__mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_maskz_min_epu16
|
||||
// CHECK: @llvm.x86.avx512.mask.pminu.w.128
|
||||
// CHECK: [[CMP:%.*]] = icmp ult <8 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i16> [[X]], <8 x i16> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i16> [[RES]], <8 x i16> {{.*}}
|
||||
return _mm_maskz_min_epu16(__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_min_epu16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) {
|
||||
// CHECK-LABEL: @test_mm_mask_min_epu16
|
||||
// CHECK: @llvm.x86.avx512.mask.pminu.w.128
|
||||
// CHECK: [[CMP:%.*]] = icmp ult <8 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <8 x i1> [[CMP]], <8 x i16> [[X]], <8 x i16> [[Y]]
|
||||
// CHECK: select <8 x i1> {{.*}}, <8 x i16> [[RES]], <8 x i16> {{.*}}
|
||||
return _mm_mask_min_epu16(__W,__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_maskz_min_epu16(__mmask16 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_maskz_min_epu16
|
||||
// CHECK: @llvm.x86.avx512.mask.pminu.w.256
|
||||
// CHECK: [[CMP:%.*]] = icmp ult <16 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i16> [[X]], <16 x i16> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i16> [[RES]], <16 x i16> {{.*}}
|
||||
return _mm256_maskz_min_epu16(__M,__A,__B);
|
||||
}
|
||||
__m256i test_mm256_mask_min_epu16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) {
|
||||
// CHECK-LABEL: @test_mm256_mask_min_epu16
|
||||
// CHECK: @llvm.x86.avx512.mask.pminu.w.256
|
||||
// CHECK: [[CMP:%.*]] = icmp ult <16 x i16> [[X:%.*]], [[Y:%.*]]
|
||||
// CHECK-NEXT: [[RES:%.*]] = select <16 x i1> [[CMP]], <16 x i16> [[X]], <16 x i16> [[Y]]
|
||||
// CHECK: select <16 x i1> {{.*}}, <16 x i16> [[RES]], <16 x i16> {{.*}}
|
||||
return _mm256_mask_min_epu16(__W,__M,__A,__B);
|
||||
}
|
||||
__m128i test_mm_mask_shuffle_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) {
|
||||
|
|
Loading…
Reference in New Issue