1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198 |
- /*===---- avx512vldqintrin.h - AVX512VL and AVX512DQ intrinsics ------------===
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- *
- *===-----------------------------------------------------------------------===
- */
- #ifndef __IMMINTRIN_H
- #error "Never use <avx512vldqintrin.h> directly; include <immintrin.h> instead."
- #endif
- #ifndef __AVX512VLDQINTRIN_H
- #define __AVX512VLDQINTRIN_H
- /* Define the default attributes for the functions in this file. */
- #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("avx512vl,avx512dq")))
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_mullo_epi64 (__m256i __A, __m256i __B) {
- return (__m256i) ((__v4du) __A * (__v4du) __B);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_mask_mullo_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) {
- return (__m256i)__builtin_ia32_selectq_256((__mmask8)__U,
- (__v4di)_mm256_mullo_epi64(__A, __B),
- (__v4di)__W);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_maskz_mullo_epi64(__mmask8 __U, __m256i __A, __m256i __B) {
- return (__m256i)__builtin_ia32_selectq_256((__mmask8)__U,
- (__v4di)_mm256_mullo_epi64(__A, __B),
- (__v4di)_mm256_setzero_si256());
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_mullo_epi64 (__m128i __A, __m128i __B) {
- return (__m128i) ((__v2du) __A * (__v2du) __B);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_mask_mullo_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) {
- return (__m128i)__builtin_ia32_selectq_128((__mmask8)__U,
- (__v2di)_mm_mullo_epi64(__A, __B),
- (__v2di)__W);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_maskz_mullo_epi64(__mmask8 __U, __m128i __A, __m128i __B) {
- return (__m128i)__builtin_ia32_selectq_128((__mmask8)__U,
- (__v2di)_mm_mullo_epi64(__A, __B),
- (__v2di)_mm_setzero_si128());
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_mask_andnot_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) {
- return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
- (__v4df)_mm256_andnot_pd(__A, __B),
- (__v4df)__W);
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_maskz_andnot_pd(__mmask8 __U, __m256d __A, __m256d __B) {
- return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
- (__v4df)_mm256_andnot_pd(__A, __B),
- (__v4df)_mm256_setzero_pd());
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_mask_andnot_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) {
- return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
- (__v2df)_mm_andnot_pd(__A, __B),
- (__v2df)__W);
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_maskz_andnot_pd(__mmask8 __U, __m128d __A, __m128d __B) {
- return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
- (__v2df)_mm_andnot_pd(__A, __B),
- (__v2df)_mm_setzero_pd());
- }
- static __inline__ __m256 __DEFAULT_FN_ATTRS
- _mm256_mask_andnot_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) {
- return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
- (__v8sf)_mm256_andnot_ps(__A, __B),
- (__v8sf)__W);
- }
- static __inline__ __m256 __DEFAULT_FN_ATTRS
- _mm256_maskz_andnot_ps(__mmask8 __U, __m256 __A, __m256 __B) {
- return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
- (__v8sf)_mm256_andnot_ps(__A, __B),
- (__v8sf)_mm256_setzero_ps());
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_mask_andnot_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) {
- return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
- (__v4sf)_mm_andnot_ps(__A, __B),
- (__v4sf)__W);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_maskz_andnot_ps(__mmask8 __U, __m128 __A, __m128 __B) {
- return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
- (__v4sf)_mm_andnot_ps(__A, __B),
- (__v4sf)_mm_setzero_ps());
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_mask_and_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) {
- return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
- (__v4df)_mm256_and_pd(__A, __B),
- (__v4df)__W);
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_maskz_and_pd(__mmask8 __U, __m256d __A, __m256d __B) {
- return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
- (__v4df)_mm256_and_pd(__A, __B),
- (__v4df)_mm256_setzero_pd());
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_mask_and_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) {
- return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
- (__v2df)_mm_and_pd(__A, __B),
- (__v2df)__W);
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_maskz_and_pd(__mmask8 __U, __m128d __A, __m128d __B) {
- return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
- (__v2df)_mm_and_pd(__A, __B),
- (__v2df)_mm_setzero_pd());
- }
- static __inline__ __m256 __DEFAULT_FN_ATTRS
- _mm256_mask_and_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) {
- return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
- (__v8sf)_mm256_and_ps(__A, __B),
- (__v8sf)__W);
- }
- static __inline__ __m256 __DEFAULT_FN_ATTRS
- _mm256_maskz_and_ps(__mmask8 __U, __m256 __A, __m256 __B) {
- return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
- (__v8sf)_mm256_and_ps(__A, __B),
- (__v8sf)_mm256_setzero_ps());
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_mask_and_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) {
- return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
- (__v4sf)_mm_and_ps(__A, __B),
- (__v4sf)__W);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_maskz_and_ps(__mmask8 __U, __m128 __A, __m128 __B) {
- return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
- (__v4sf)_mm_and_ps(__A, __B),
- (__v4sf)_mm_setzero_ps());
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_mask_xor_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) {
- return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
- (__v4df)_mm256_xor_pd(__A, __B),
- (__v4df)__W);
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_maskz_xor_pd(__mmask8 __U, __m256d __A, __m256d __B) {
- return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
- (__v4df)_mm256_xor_pd(__A, __B),
- (__v4df)_mm256_setzero_pd());
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_mask_xor_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) {
- return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
- (__v2df)_mm_xor_pd(__A, __B),
- (__v2df)__W);
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_maskz_xor_pd (__mmask8 __U, __m128d __A, __m128d __B) {
- return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
- (__v2df)_mm_xor_pd(__A, __B),
- (__v2df)_mm_setzero_pd());
- }
- static __inline__ __m256 __DEFAULT_FN_ATTRS
- _mm256_mask_xor_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) {
- return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
- (__v8sf)_mm256_xor_ps(__A, __B),
- (__v8sf)__W);
- }
- static __inline__ __m256 __DEFAULT_FN_ATTRS
- _mm256_maskz_xor_ps(__mmask8 __U, __m256 __A, __m256 __B) {
- return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
- (__v8sf)_mm256_xor_ps(__A, __B),
- (__v8sf)_mm256_setzero_ps());
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_mask_xor_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) {
- return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
- (__v4sf)_mm_xor_ps(__A, __B),
- (__v4sf)__W);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_maskz_xor_ps(__mmask8 __U, __m128 __A, __m128 __B) {
- return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
- (__v4sf)_mm_xor_ps(__A, __B),
- (__v4sf)_mm_setzero_ps());
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_mask_or_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) {
- return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
- (__v4df)_mm256_or_pd(__A, __B),
- (__v4df)__W);
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_maskz_or_pd(__mmask8 __U, __m256d __A, __m256d __B) {
- return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__U,
- (__v4df)_mm256_or_pd(__A, __B),
- (__v4df)_mm256_setzero_pd());
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_mask_or_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) {
- return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
- (__v2df)_mm_or_pd(__A, __B),
- (__v2df)__W);
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_maskz_or_pd(__mmask8 __U, __m128d __A, __m128d __B) {
- return (__m128d)__builtin_ia32_selectpd_128((__mmask8)__U,
- (__v2df)_mm_or_pd(__A, __B),
- (__v2df)_mm_setzero_pd());
- }
- static __inline__ __m256 __DEFAULT_FN_ATTRS
- _mm256_mask_or_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) {
- return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
- (__v8sf)_mm256_or_ps(__A, __B),
- (__v8sf)__W);
- }
- static __inline__ __m256 __DEFAULT_FN_ATTRS
- _mm256_maskz_or_ps(__mmask8 __U, __m256 __A, __m256 __B) {
- return (__m256)__builtin_ia32_selectps_256((__mmask8)__U,
- (__v8sf)_mm256_or_ps(__A, __B),
- (__v8sf)_mm256_setzero_ps());
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_mask_or_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) {
- return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
- (__v4sf)_mm_or_ps(__A, __B),
- (__v4sf)__W);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_maskz_or_ps(__mmask8 __U, __m128 __A, __m128 __B) {
- return (__m128)__builtin_ia32_selectps_128((__mmask8)__U,
- (__v4sf)_mm_or_ps(__A, __B),
- (__v4sf)_mm_setzero_ps());
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_cvtpd_epi64 (__m128d __A) {
- return (__m128i) __builtin_ia32_cvtpd2qq128_mask ((__v2df) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) -1);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_mask_cvtpd_epi64 (__m128i __W, __mmask8 __U, __m128d __A) {
- return (__m128i) __builtin_ia32_cvtpd2qq128_mask ((__v2df) __A,
- (__v2di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_maskz_cvtpd_epi64 (__mmask8 __U, __m128d __A) {
- return (__m128i) __builtin_ia32_cvtpd2qq128_mask ((__v2df) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_cvtpd_epi64 (__m256d __A) {
- return (__m256i) __builtin_ia32_cvtpd2qq256_mask ((__v4df) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) -1);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_mask_cvtpd_epi64 (__m256i __W, __mmask8 __U, __m256d __A) {
- return (__m256i) __builtin_ia32_cvtpd2qq256_mask ((__v4df) __A,
- (__v4di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_maskz_cvtpd_epi64 (__mmask8 __U, __m256d __A) {
- return (__m256i) __builtin_ia32_cvtpd2qq256_mask ((__v4df) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_cvtpd_epu64 (__m128d __A) {
- return (__m128i) __builtin_ia32_cvtpd2uqq128_mask ((__v2df) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) -1);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_mask_cvtpd_epu64 (__m128i __W, __mmask8 __U, __m128d __A) {
- return (__m128i) __builtin_ia32_cvtpd2uqq128_mask ((__v2df) __A,
- (__v2di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_maskz_cvtpd_epu64 (__mmask8 __U, __m128d __A) {
- return (__m128i) __builtin_ia32_cvtpd2uqq128_mask ((__v2df) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_cvtpd_epu64 (__m256d __A) {
- return (__m256i) __builtin_ia32_cvtpd2uqq256_mask ((__v4df) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) -1);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_mask_cvtpd_epu64 (__m256i __W, __mmask8 __U, __m256d __A) {
- return (__m256i) __builtin_ia32_cvtpd2uqq256_mask ((__v4df) __A,
- (__v4di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_maskz_cvtpd_epu64 (__mmask8 __U, __m256d __A) {
- return (__m256i) __builtin_ia32_cvtpd2uqq256_mask ((__v4df) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_cvtps_epi64 (__m128 __A) {
- return (__m128i) __builtin_ia32_cvtps2qq128_mask ((__v4sf) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) -1);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_mask_cvtps_epi64 (__m128i __W, __mmask8 __U, __m128 __A) {
- return (__m128i) __builtin_ia32_cvtps2qq128_mask ((__v4sf) __A,
- (__v2di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_maskz_cvtps_epi64 (__mmask8 __U, __m128 __A) {
- return (__m128i) __builtin_ia32_cvtps2qq128_mask ((__v4sf) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_cvtps_epi64 (__m128 __A) {
- return (__m256i) __builtin_ia32_cvtps2qq256_mask ((__v4sf) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) -1);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_mask_cvtps_epi64 (__m256i __W, __mmask8 __U, __m128 __A) {
- return (__m256i) __builtin_ia32_cvtps2qq256_mask ((__v4sf) __A,
- (__v4di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_maskz_cvtps_epi64 (__mmask8 __U, __m128 __A) {
- return (__m256i) __builtin_ia32_cvtps2qq256_mask ((__v4sf) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_cvtps_epu64 (__m128 __A) {
- return (__m128i) __builtin_ia32_cvtps2uqq128_mask ((__v4sf) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) -1);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_mask_cvtps_epu64 (__m128i __W, __mmask8 __U, __m128 __A) {
- return (__m128i) __builtin_ia32_cvtps2uqq128_mask ((__v4sf) __A,
- (__v2di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_maskz_cvtps_epu64 (__mmask8 __U, __m128 __A) {
- return (__m128i) __builtin_ia32_cvtps2uqq128_mask ((__v4sf) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_cvtps_epu64 (__m128 __A) {
- return (__m256i) __builtin_ia32_cvtps2uqq256_mask ((__v4sf) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) -1);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_mask_cvtps_epu64 (__m256i __W, __mmask8 __U, __m128 __A) {
- return (__m256i) __builtin_ia32_cvtps2uqq256_mask ((__v4sf) __A,
- (__v4di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_maskz_cvtps_epu64 (__mmask8 __U, __m128 __A) {
- return (__m256i) __builtin_ia32_cvtps2uqq256_mask ((__v4sf) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) __U);
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_cvtepi64_pd (__m128i __A) {
- return (__m128d) __builtin_ia32_cvtqq2pd128_mask ((__v2di) __A,
- (__v2df) _mm_setzero_pd(),
- (__mmask8) -1);
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_mask_cvtepi64_pd (__m128d __W, __mmask8 __U, __m128i __A) {
- return (__m128d) __builtin_ia32_cvtqq2pd128_mask ((__v2di) __A,
- (__v2df) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_maskz_cvtepi64_pd (__mmask8 __U, __m128i __A) {
- return (__m128d) __builtin_ia32_cvtqq2pd128_mask ((__v2di) __A,
- (__v2df) _mm_setzero_pd(),
- (__mmask8) __U);
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_cvtepi64_pd (__m256i __A) {
- return (__m256d) __builtin_ia32_cvtqq2pd256_mask ((__v4di) __A,
- (__v4df) _mm256_setzero_pd(),
- (__mmask8) -1);
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_mask_cvtepi64_pd (__m256d __W, __mmask8 __U, __m256i __A) {
- return (__m256d) __builtin_ia32_cvtqq2pd256_mask ((__v4di) __A,
- (__v4df) __W,
- (__mmask8) __U);
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_maskz_cvtepi64_pd (__mmask8 __U, __m256i __A) {
- return (__m256d) __builtin_ia32_cvtqq2pd256_mask ((__v4di) __A,
- (__v4df) _mm256_setzero_pd(),
- (__mmask8) __U);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_cvtepi64_ps (__m128i __A) {
- return (__m128) __builtin_ia32_cvtqq2ps128_mask ((__v2di) __A,
- (__v4sf) _mm_setzero_ps(),
- (__mmask8) -1);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_mask_cvtepi64_ps (__m128 __W, __mmask8 __U, __m128i __A) {
- return (__m128) __builtin_ia32_cvtqq2ps128_mask ((__v2di) __A,
- (__v4sf) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_maskz_cvtepi64_ps (__mmask8 __U, __m128i __A) {
- return (__m128) __builtin_ia32_cvtqq2ps128_mask ((__v2di) __A,
- (__v4sf) _mm_setzero_ps(),
- (__mmask8) __U);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm256_cvtepi64_ps (__m256i __A) {
- return (__m128) __builtin_ia32_cvtqq2ps256_mask ((__v4di) __A,
- (__v4sf) _mm_setzero_ps(),
- (__mmask8) -1);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm256_mask_cvtepi64_ps (__m128 __W, __mmask8 __U, __m256i __A) {
- return (__m128) __builtin_ia32_cvtqq2ps256_mask ((__v4di) __A,
- (__v4sf) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm256_maskz_cvtepi64_ps (__mmask8 __U, __m256i __A) {
- return (__m128) __builtin_ia32_cvtqq2ps256_mask ((__v4di) __A,
- (__v4sf) _mm_setzero_ps(),
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_cvttpd_epi64 (__m128d __A) {
- return (__m128i) __builtin_ia32_cvttpd2qq128_mask ((__v2df) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) -1);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_mask_cvttpd_epi64 (__m128i __W, __mmask8 __U, __m128d __A) {
- return (__m128i) __builtin_ia32_cvttpd2qq128_mask ((__v2df) __A,
- (__v2di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_maskz_cvttpd_epi64 (__mmask8 __U, __m128d __A) {
- return (__m128i) __builtin_ia32_cvttpd2qq128_mask ((__v2df) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_cvttpd_epi64 (__m256d __A) {
- return (__m256i) __builtin_ia32_cvttpd2qq256_mask ((__v4df) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) -1);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_mask_cvttpd_epi64 (__m256i __W, __mmask8 __U, __m256d __A) {
- return (__m256i) __builtin_ia32_cvttpd2qq256_mask ((__v4df) __A,
- (__v4di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_maskz_cvttpd_epi64 (__mmask8 __U, __m256d __A) {
- return (__m256i) __builtin_ia32_cvttpd2qq256_mask ((__v4df) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_cvttpd_epu64 (__m128d __A) {
- return (__m128i) __builtin_ia32_cvttpd2uqq128_mask ((__v2df) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) -1);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_mask_cvttpd_epu64 (__m128i __W, __mmask8 __U, __m128d __A) {
- return (__m128i) __builtin_ia32_cvttpd2uqq128_mask ((__v2df) __A,
- (__v2di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_maskz_cvttpd_epu64 (__mmask8 __U, __m128d __A) {
- return (__m128i) __builtin_ia32_cvttpd2uqq128_mask ((__v2df) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_cvttpd_epu64 (__m256d __A) {
- return (__m256i) __builtin_ia32_cvttpd2uqq256_mask ((__v4df) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) -1);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_mask_cvttpd_epu64 (__m256i __W, __mmask8 __U, __m256d __A) {
- return (__m256i) __builtin_ia32_cvttpd2uqq256_mask ((__v4df) __A,
- (__v4di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_maskz_cvttpd_epu64 (__mmask8 __U, __m256d __A) {
- return (__m256i) __builtin_ia32_cvttpd2uqq256_mask ((__v4df) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_cvttps_epi64 (__m128 __A) {
- return (__m128i) __builtin_ia32_cvttps2qq128_mask ((__v4sf) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) -1);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_mask_cvttps_epi64 (__m128i __W, __mmask8 __U, __m128 __A) {
- return (__m128i) __builtin_ia32_cvttps2qq128_mask ((__v4sf) __A,
- (__v2di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_maskz_cvttps_epi64 (__mmask8 __U, __m128 __A) {
- return (__m128i) __builtin_ia32_cvttps2qq128_mask ((__v4sf) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_cvttps_epi64 (__m128 __A) {
- return (__m256i) __builtin_ia32_cvttps2qq256_mask ((__v4sf) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) -1);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_mask_cvttps_epi64 (__m256i __W, __mmask8 __U, __m128 __A) {
- return (__m256i) __builtin_ia32_cvttps2qq256_mask ((__v4sf) __A,
- (__v4di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_maskz_cvttps_epi64 (__mmask8 __U, __m128 __A) {
- return (__m256i) __builtin_ia32_cvttps2qq256_mask ((__v4sf) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_cvttps_epu64 (__m128 __A) {
- return (__m128i) __builtin_ia32_cvttps2uqq128_mask ((__v4sf) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) -1);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_mask_cvttps_epu64 (__m128i __W, __mmask8 __U, __m128 __A) {
- return (__m128i) __builtin_ia32_cvttps2uqq128_mask ((__v4sf) __A,
- (__v2di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_maskz_cvttps_epu64 (__mmask8 __U, __m128 __A) {
- return (__m128i) __builtin_ia32_cvttps2uqq128_mask ((__v4sf) __A,
- (__v2di) _mm_setzero_si128(),
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_cvttps_epu64 (__m128 __A) {
- return (__m256i) __builtin_ia32_cvttps2uqq256_mask ((__v4sf) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) -1);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_mask_cvttps_epu64 (__m256i __W, __mmask8 __U, __m128 __A) {
- return (__m256i) __builtin_ia32_cvttps2uqq256_mask ((__v4sf) __A,
- (__v4di) __W,
- (__mmask8) __U);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_maskz_cvttps_epu64 (__mmask8 __U, __m128 __A) {
- return (__m256i) __builtin_ia32_cvttps2uqq256_mask ((__v4sf) __A,
- (__v4di) _mm256_setzero_si256(),
- (__mmask8) __U);
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_cvtepu64_pd (__m128i __A) {
- return (__m128d) __builtin_ia32_cvtuqq2pd128_mask ((__v2di) __A,
- (__v2df) _mm_setzero_pd(),
- (__mmask8) -1);
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_mask_cvtepu64_pd (__m128d __W, __mmask8 __U, __m128i __A) {
- return (__m128d) __builtin_ia32_cvtuqq2pd128_mask ((__v2di) __A,
- (__v2df) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128d __DEFAULT_FN_ATTRS
- _mm_maskz_cvtepu64_pd (__mmask8 __U, __m128i __A) {
- return (__m128d) __builtin_ia32_cvtuqq2pd128_mask ((__v2di) __A,
- (__v2df) _mm_setzero_pd(),
- (__mmask8) __U);
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_cvtepu64_pd (__m256i __A) {
- return (__m256d) __builtin_ia32_cvtuqq2pd256_mask ((__v4di) __A,
- (__v4df) _mm256_setzero_pd(),
- (__mmask8) -1);
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_mask_cvtepu64_pd (__m256d __W, __mmask8 __U, __m256i __A) {
- return (__m256d) __builtin_ia32_cvtuqq2pd256_mask ((__v4di) __A,
- (__v4df) __W,
- (__mmask8) __U);
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_maskz_cvtepu64_pd (__mmask8 __U, __m256i __A) {
- return (__m256d) __builtin_ia32_cvtuqq2pd256_mask ((__v4di) __A,
- (__v4df) _mm256_setzero_pd(),
- (__mmask8) __U);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_cvtepu64_ps (__m128i __A) {
- return (__m128) __builtin_ia32_cvtuqq2ps128_mask ((__v2di) __A,
- (__v4sf) _mm_setzero_ps(),
- (__mmask8) -1);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_mask_cvtepu64_ps (__m128 __W, __mmask8 __U, __m128i __A) {
- return (__m128) __builtin_ia32_cvtuqq2ps128_mask ((__v2di) __A,
- (__v4sf) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm_maskz_cvtepu64_ps (__mmask8 __U, __m128i __A) {
- return (__m128) __builtin_ia32_cvtuqq2ps128_mask ((__v2di) __A,
- (__v4sf) _mm_setzero_ps(),
- (__mmask8) __U);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm256_cvtepu64_ps (__m256i __A) {
- return (__m128) __builtin_ia32_cvtuqq2ps256_mask ((__v4di) __A,
- (__v4sf) _mm_setzero_ps(),
- (__mmask8) -1);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm256_mask_cvtepu64_ps (__m128 __W, __mmask8 __U, __m256i __A) {
- return (__m128) __builtin_ia32_cvtuqq2ps256_mask ((__v4di) __A,
- (__v4sf) __W,
- (__mmask8) __U);
- }
- static __inline__ __m128 __DEFAULT_FN_ATTRS
- _mm256_maskz_cvtepu64_ps (__mmask8 __U, __m256i __A) {
- return (__m128) __builtin_ia32_cvtuqq2ps256_mask ((__v4di) __A,
- (__v4sf) _mm_setzero_ps(),
- (__mmask8) __U);
- }
- #define _mm_range_pd(A, B, C) __extension__ ({ \
- (__m128d)__builtin_ia32_rangepd128_mask((__v2df)(__m128d)(A), \
- (__v2df)(__m128d)(B), (int)(C), \
- (__v2df)_mm_setzero_pd(), \
- (__mmask8)-1); })
- #define _mm_mask_range_pd(W, U, A, B, C) __extension__ ({ \
- (__m128d)__builtin_ia32_rangepd128_mask((__v2df)(__m128d)(A), \
- (__v2df)(__m128d)(B), (int)(C), \
- (__v2df)(__m128d)(W), \
- (__mmask8)(U)); })
- #define _mm_maskz_range_pd(U, A, B, C) __extension__ ({ \
- (__m128d)__builtin_ia32_rangepd128_mask((__v2df)(__m128d)(A), \
- (__v2df)(__m128d)(B), (int)(C), \
- (__v2df)_mm_setzero_pd(), \
- (__mmask8)(U)); })
- #define _mm256_range_pd(A, B, C) __extension__ ({ \
- (__m256d)__builtin_ia32_rangepd256_mask((__v4df)(__m256d)(A), \
- (__v4df)(__m256d)(B), (int)(C), \
- (__v4df)_mm256_setzero_pd(), \
- (__mmask8)-1); })
- #define _mm256_mask_range_pd(W, U, A, B, C) __extension__ ({ \
- (__m256d)__builtin_ia32_rangepd256_mask((__v4df)(__m256d)(A), \
- (__v4df)(__m256d)(B), (int)(C), \
- (__v4df)(__m256d)(W), \
- (__mmask8)(U)); })
- #define _mm256_maskz_range_pd(U, A, B, C) __extension__ ({ \
- (__m256d)__builtin_ia32_rangepd256_mask((__v4df)(__m256d)(A), \
- (__v4df)(__m256d)(B), (int)(C), \
- (__v4df)_mm256_setzero_pd(), \
- (__mmask8)(U)); })
- #define _mm_range_ps(A, B, C) __extension__ ({ \
- (__m128)__builtin_ia32_rangeps128_mask((__v4sf)(__m128)(A), \
- (__v4sf)(__m128)(B), (int)(C), \
- (__v4sf)_mm_setzero_ps(), \
- (__mmask8)-1); })
- #define _mm_mask_range_ps(W, U, A, B, C) __extension__ ({ \
- (__m128)__builtin_ia32_rangeps128_mask((__v4sf)(__m128)(A), \
- (__v4sf)(__m128)(B), (int)(C), \
- (__v4sf)(__m128)(W), (__mmask8)(U)); })
- #define _mm_maskz_range_ps(U, A, B, C) __extension__ ({ \
- (__m128)__builtin_ia32_rangeps128_mask((__v4sf)(__m128)(A), \
- (__v4sf)(__m128)(B), (int)(C), \
- (__v4sf)_mm_setzero_ps(), \
- (__mmask8)(U)); })
- #define _mm256_range_ps(A, B, C) __extension__ ({ \
- (__m256)__builtin_ia32_rangeps256_mask((__v8sf)(__m256)(A), \
- (__v8sf)(__m256)(B), (int)(C), \
- (__v8sf)_mm256_setzero_ps(), \
- (__mmask8)-1); })
- #define _mm256_mask_range_ps(W, U, A, B, C) __extension__ ({ \
- (__m256)__builtin_ia32_rangeps256_mask((__v8sf)(__m256)(A), \
- (__v8sf)(__m256)(B), (int)(C), \
- (__v8sf)(__m256)(W), (__mmask8)(U)); })
- #define _mm256_maskz_range_ps(U, A, B, C) __extension__ ({ \
- (__m256)__builtin_ia32_rangeps256_mask((__v8sf)(__m256)(A), \
- (__v8sf)(__m256)(B), (int)(C), \
- (__v8sf)_mm256_setzero_ps(), \
- (__mmask8)(U)); })
- #define _mm_reduce_pd(A, B) __extension__ ({ \
- (__m128d)__builtin_ia32_reducepd128_mask((__v2df)(__m128d)(A), (int)(B), \
- (__v2df)_mm_setzero_pd(), \
- (__mmask8)-1); })
- #define _mm_mask_reduce_pd(W, U, A, B) __extension__ ({ \
- (__m128d)__builtin_ia32_reducepd128_mask((__v2df)(__m128d)(A), (int)(B), \
- (__v2df)(__m128d)(W), \
- (__mmask8)(U)); })
- #define _mm_maskz_reduce_pd(U, A, B) __extension__ ({ \
- (__m128d)__builtin_ia32_reducepd128_mask((__v2df)(__m128d)(A), (int)(B), \
- (__v2df)_mm_setzero_pd(), \
- (__mmask8)(U)); })
- #define _mm256_reduce_pd(A, B) __extension__ ({ \
- (__m256d)__builtin_ia32_reducepd256_mask((__v4df)(__m256d)(A), (int)(B), \
- (__v4df)_mm256_setzero_pd(), \
- (__mmask8)-1); })
- #define _mm256_mask_reduce_pd(W, U, A, B) __extension__ ({ \
- (__m256d)__builtin_ia32_reducepd256_mask((__v4df)(__m256d)(A), (int)(B), \
- (__v4df)(__m256d)(W), \
- (__mmask8)(U)); })
- #define _mm256_maskz_reduce_pd(U, A, B) __extension__ ({ \
- (__m256d)__builtin_ia32_reducepd256_mask((__v4df)(__m256d)(A), (int)(B), \
- (__v4df)_mm256_setzero_pd(), \
- (__mmask8)(U)); })
- #define _mm_reduce_ps(A, B) __extension__ ({ \
- (__m128)__builtin_ia32_reduceps128_mask((__v4sf)(__m128)(A), (int)(B), \
- (__v4sf)_mm_setzero_ps(), \
- (__mmask8)-1); })
- #define _mm_mask_reduce_ps(W, U, A, B) __extension__ ({ \
- (__m128)__builtin_ia32_reduceps128_mask((__v4sf)(__m128)(A), (int)(B), \
- (__v4sf)(__m128)(W), \
- (__mmask8)(U)); })
- #define _mm_maskz_reduce_ps(U, A, B) __extension__ ({ \
- (__m128)__builtin_ia32_reduceps128_mask((__v4sf)(__m128)(A), (int)(B), \
- (__v4sf)_mm_setzero_ps(), \
- (__mmask8)(U)); })
- #define _mm256_reduce_ps(A, B) __extension__ ({ \
- (__m256)__builtin_ia32_reduceps256_mask((__v8sf)(__m256)(A), (int)(B), \
- (__v8sf)_mm256_setzero_ps(), \
- (__mmask8)-1); })
- #define _mm256_mask_reduce_ps(W, U, A, B) __extension__ ({ \
- (__m256)__builtin_ia32_reduceps256_mask((__v8sf)(__m256)(A), (int)(B), \
- (__v8sf)(__m256)(W), \
- (__mmask8)(U)); })
- #define _mm256_maskz_reduce_ps(U, A, B) __extension__ ({ \
- (__m256)__builtin_ia32_reduceps256_mask((__v8sf)(__m256)(A), (int)(B), \
- (__v8sf)_mm256_setzero_ps(), \
- (__mmask8)(U)); })
- static __inline__ __mmask8 __DEFAULT_FN_ATTRS
- _mm_movepi32_mask (__m128i __A)
- {
- return (__mmask8) __builtin_ia32_cvtd2mask128 ((__v4si) __A);
- }
- static __inline__ __mmask8 __DEFAULT_FN_ATTRS
- _mm256_movepi32_mask (__m256i __A)
- {
- return (__mmask8) __builtin_ia32_cvtd2mask256 ((__v8si) __A);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_movm_epi32 (__mmask8 __A)
- {
- return (__m128i) __builtin_ia32_cvtmask2d128 (__A);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_movm_epi32 (__mmask8 __A)
- {
- return (__m256i) __builtin_ia32_cvtmask2d256 (__A);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_movm_epi64 (__mmask8 __A)
- {
- return (__m128i) __builtin_ia32_cvtmask2q128 (__A);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_movm_epi64 (__mmask8 __A)
- {
- return (__m256i) __builtin_ia32_cvtmask2q256 (__A);
- }
- static __inline__ __mmask8 __DEFAULT_FN_ATTRS
- _mm_movepi64_mask (__m128i __A)
- {
- return (__mmask8) __builtin_ia32_cvtq2mask128 ((__v2di) __A);
- }
- static __inline__ __mmask8 __DEFAULT_FN_ATTRS
- _mm256_movepi64_mask (__m256i __A)
- {
- return (__mmask8) __builtin_ia32_cvtq2mask256 ((__v4di) __A);
- }
- static __inline__ __m256 __DEFAULT_FN_ATTRS
- _mm256_broadcast_f32x2 (__m128 __A)
- {
- return (__m256)__builtin_shufflevector((__v4sf)__A,
- (__v4sf)_mm_undefined_ps(),
- 0, 1, 0, 1, 0, 1, 0, 1);
- }
- static __inline__ __m256 __DEFAULT_FN_ATTRS
- _mm256_mask_broadcast_f32x2 (__m256 __O, __mmask8 __M, __m128 __A)
- {
- return (__m256)__builtin_ia32_selectps_256((__mmask8)__M,
- (__v8sf)_mm256_broadcast_f32x2(__A),
- (__v8sf)__O);
- }
- static __inline__ __m256 __DEFAULT_FN_ATTRS
- _mm256_maskz_broadcast_f32x2 (__mmask8 __M, __m128 __A)
- {
- return (__m256)__builtin_ia32_selectps_256((__mmask8)__M,
- (__v8sf)_mm256_broadcast_f32x2(__A),
- (__v8sf)_mm256_setzero_ps());
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_broadcast_f64x2(__m128d __A)
- {
- return (__m256d)__builtin_shufflevector((__v2df)__A, (__v2df)__A,
- 0, 1, 0, 1);
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_mask_broadcast_f64x2(__m256d __O, __mmask8 __M, __m128d __A)
- {
- return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__M,
- (__v4df)_mm256_broadcast_f64x2(__A),
- (__v4df)__O);
- }
- static __inline__ __m256d __DEFAULT_FN_ATTRS
- _mm256_maskz_broadcast_f64x2 (__mmask8 __M, __m128d __A)
- {
- return (__m256d)__builtin_ia32_selectpd_256((__mmask8)__M,
- (__v4df)_mm256_broadcast_f64x2(__A),
- (__v4df)_mm256_setzero_pd());
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_broadcast_i32x2 (__m128i __A)
- {
- return (__m128i)__builtin_shufflevector((__v4si)__A,
- (__v4si)_mm_undefined_si128(),
- 0, 1, 0, 1);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_mask_broadcast_i32x2 (__m128i __O, __mmask8 __M, __m128i __A)
- {
- return (__m128i)__builtin_ia32_selectd_128((__mmask8)__M,
- (__v4si)_mm_broadcast_i32x2(__A),
- (__v4si)__O);
- }
- static __inline__ __m128i __DEFAULT_FN_ATTRS
- _mm_maskz_broadcast_i32x2 (__mmask8 __M, __m128i __A)
- {
- return (__m128i)__builtin_ia32_selectd_128((__mmask8)__M,
- (__v4si)_mm_broadcast_i32x2(__A),
- (__v4si)_mm_setzero_si128());
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_broadcast_i32x2 (__m128i __A)
- {
- return (__m256i)__builtin_shufflevector((__v4si)__A,
- (__v4si)_mm_undefined_si128(),
- 0, 1, 0, 1, 0, 1, 0, 1);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_mask_broadcast_i32x2 (__m256i __O, __mmask8 __M, __m128i __A)
- {
- return (__m256i)__builtin_ia32_selectd_256((__mmask8)__M,
- (__v8si)_mm256_broadcast_i32x2(__A),
- (__v8si)__O);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_maskz_broadcast_i32x2 (__mmask8 __M, __m128i __A)
- {
- return (__m256i)__builtin_ia32_selectd_256((__mmask8)__M,
- (__v8si)_mm256_broadcast_i32x2(__A),
- (__v8si)_mm256_setzero_si256());
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_broadcast_i64x2(__m128i __A)
- {
- return (__m256i)__builtin_shufflevector((__v2di)__A, (__v2di)__A,
- 0, 1, 0, 1);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_mask_broadcast_i64x2(__m256i __O, __mmask8 __M, __m128i __A)
- {
- return (__m256i)__builtin_ia32_selectq_256((__mmask8)__M,
- (__v4di)_mm256_broadcast_i64x2(__A),
- (__v4di)__O);
- }
- static __inline__ __m256i __DEFAULT_FN_ATTRS
- _mm256_maskz_broadcast_i64x2 (__mmask8 __M, __m128i __A)
- {
- return (__m256i)__builtin_ia32_selectq_256((__mmask8)__M,
- (__v4di)_mm256_broadcast_i64x2(__A),
- (__v4di)_mm256_setzero_si256());
- }
- #define _mm256_extractf64x2_pd(A, imm) __extension__ ({ \
- (__m128d)__builtin_shufflevector((__v4df)(__m256d)(A), \
- (__v4df)_mm256_undefined_pd(), \
- ((imm) & 1) ? 2 : 0, \
- ((imm) & 1) ? 3 : 1); })
- #define _mm256_mask_extractf64x2_pd(W, U, A, imm) __extension__ ({ \
- (__m128d)__builtin_ia32_selectpd_128((__mmask8)(U), \
- (__v2df)_mm256_extractf64x2_pd((A), (imm)), \
- (__v2df)(W)); })
- #define _mm256_maskz_extractf64x2_pd(U, A, imm) __extension__ ({ \
- (__m128d)__builtin_ia32_selectpd_128((__mmask8)(U), \
- (__v2df)_mm256_extractf64x2_pd((A), (imm)), \
- (__v2df)_mm_setzero_pd()); })
- #define _mm256_extracti64x2_epi64(A, imm) __extension__ ({ \
- (__m128i)__builtin_shufflevector((__v4di)(__m256i)(A), \
- (__v4di)_mm256_undefined_si256(), \
- ((imm) & 1) ? 2 : 0, \
- ((imm) & 1) ? 3 : 1); })
- #define _mm256_mask_extracti64x2_epi64(W, U, A, imm) __extension__ ({ \
- (__m128i)__builtin_ia32_selectq_128((__mmask8)(U), \
- (__v2di)_mm256_extracti64x2_epi64((A), (imm)), \
- (__v2di)(W)); })
- #define _mm256_maskz_extracti64x2_epi64(U, A, imm) __extension__ ({ \
- (__m128i)__builtin_ia32_selectq_128((__mmask8)(U), \
- (__v2di)_mm256_extracti64x2_epi64((A), (imm)), \
- (__v2di)_mm_setzero_di()); })
- #define _mm256_insertf64x2(A, B, imm) __extension__ ({ \
- (__m256d)__builtin_shufflevector((__v4df)(A), \
- (__v4df)_mm256_castpd128_pd256((__m128d)(B)), \
- ((imm) & 0x1) ? 0 : 4, \
- ((imm) & 0x1) ? 1 : 5, \
- ((imm) & 0x1) ? 4 : 2, \
- ((imm) & 0x1) ? 5 : 3); })
- #define _mm256_mask_insertf64x2(W, U, A, B, imm) __extension__ ({ \
- (__m256d)__builtin_ia32_selectpd_256((__mmask8)(U), \
- (__v4df)_mm256_insertf64x2((A), (B), (imm)), \
- (__v4df)(W)); })
- #define _mm256_maskz_insertf64x2(U, A, B, imm) __extension__ ({ \
- (__m256d)__builtin_ia32_selectpd_256((__mmask8)(U), \
- (__v4df)_mm256_insertf64x2((A), (B), (imm)), \
- (__v4df)_mm256_setzero_pd()); })
- #define _mm256_inserti64x2(A, B, imm) __extension__ ({ \
- (__m256i)__builtin_shufflevector((__v4di)(A), \
- (__v4di)_mm256_castsi128_si256((__m128i)(B)), \
- ((imm) & 0x1) ? 0 : 4, \
- ((imm) & 0x1) ? 1 : 5, \
- ((imm) & 0x1) ? 4 : 2, \
- ((imm) & 0x1) ? 5 : 3); })
- #define _mm256_mask_inserti64x2(W, U, A, B, imm) __extension__ ({ \
- (__m256i)__builtin_ia32_selectq_256((__mmask8)(U), \
- (__v4di)_mm256_inserti64x2((A), (B), (imm)), \
- (__v4di)(W)); })
- #define _mm256_maskz_inserti64x2(U, A, B, imm) __extension__ ({ \
- (__m256i)__builtin_ia32_selectq_256((__mmask8)(U), \
- (__v4di)_mm256_inserti64x2((A), (B), (imm)), \
- (__v4di)_mm256_setzero_si256()); })
- #define _mm_mask_fpclass_pd_mask(U, A, imm) __extension__ ({ \
- (__mmask8)__builtin_ia32_fpclasspd128_mask((__v2df)(__m128d)(A), (int)(imm), \
- (__mmask8)(U)); })
- #define _mm_fpclass_pd_mask(A, imm) __extension__ ({ \
- (__mmask8)__builtin_ia32_fpclasspd128_mask((__v2df)(__m128d)(A), (int)(imm), \
- (__mmask8)-1); })
- #define _mm256_mask_fpclass_pd_mask(U, A, imm) __extension__ ({ \
- (__mmask8)__builtin_ia32_fpclasspd256_mask((__v4df)(__m256d)(A), (int)(imm), \
- (__mmask8)(U)); })
- #define _mm256_fpclass_pd_mask(A, imm) __extension__ ({ \
- (__mmask8)__builtin_ia32_fpclasspd256_mask((__v4df)(__m256d)(A), (int)(imm), \
- (__mmask8)-1); })
- #define _mm_mask_fpclass_ps_mask(U, A, imm) __extension__ ({ \
- (__mmask8)__builtin_ia32_fpclassps128_mask((__v4sf)(__m128)(A), (int)(imm), \
- (__mmask8)(U)); })
- #define _mm_fpclass_ps_mask(A, imm) __extension__ ({ \
- (__mmask8)__builtin_ia32_fpclassps128_mask((__v4sf)(__m128)(A), (int)(imm), \
- (__mmask8)-1); })
- #define _mm256_mask_fpclass_ps_mask(U, A, imm) __extension__ ({ \
- (__mmask8)__builtin_ia32_fpclassps256_mask((__v8sf)(__m256)(A), (int)(imm), \
- (__mmask8)(U)); })
- #define _mm256_fpclass_ps_mask(A, imm) __extension__ ({ \
- (__mmask8)__builtin_ia32_fpclassps256_mask((__v8sf)(__m256)(A), (int)(imm), \
- (__mmask8)-1); })
- #undef __DEFAULT_FN_ATTRS
- #endif
|