source: Daodan/MinGW/lib/gcc/mingw32/5.3.0/include/avx512vbmiintrin.h@ 1054

Last change on this file since 1054 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 4.8 KB
Line 
1/* Copyright (C) 2013-2015 Free Software Foundation, Inc.
2
3 This file is part of GCC.
4
5 GCC is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3, or (at your option)
8 any later version.
9
10 GCC is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 Under Section 7 of GPL version 3, you are granted additional
16 permissions described in the GCC Runtime Library Exception, version
17 3.1, as published by the Free Software Foundation.
18
19 You should have received a copy of the GNU General Public License and
20 a copy of the GCC Runtime Library Exception along with this program;
21 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
22 <http://www.gnu.org/licenses/>. */
23
24#ifndef _IMMINTRIN_H_INCLUDED
25#error "Never use <avx512vbmiintrin.h> directly; include <immintrin.h> instead."
26#endif
27
28#ifndef _AVX512VBMIINTRIN_H_INCLUDED
29#define _AVX512VBMIINTRIN_H_INCLUDED
30
31#ifndef __AVX512VBMI__
32#pragma GCC push_options
33#pragma GCC target("avx512vbmi")
34#define __DISABLE_AVX512VBMI__
35#endif /* __AVX512VBMI__ */
36
37extern __inline __m512i
38__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
39_mm512_mask_multishift_epi64_epi8 (__m512i __W, __mmask64 __M, __m512i __X, __m512i __Y)
40{
41 return (__m512i) __builtin_ia32_vpmultishiftqb512_mask ((__v64qi) __X,
42 (__v64qi) __Y,
43 (__v64qi) __W,
44 (__mmask64) __M);
45}
46
47extern __inline __m512i
48__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
49_mm512_maskz_multishift_epi64_epi8 (__mmask64 __M, __m512i __X, __m512i __Y)
50{
51 return (__m512i) __builtin_ia32_vpmultishiftqb512_mask ((__v64qi) __X,
52 (__v64qi) __Y,
53 (__v64qi)
54 _mm512_setzero_si512 (),
55 (__mmask64) __M);
56}
57
58extern __inline __m512i
59__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
60_mm512_multishift_epi64_epi8 (__m512i __X, __m512i __Y)
61{
62 return (__m512i) __builtin_ia32_vpmultishiftqb512_mask ((__v64qi) __X,
63 (__v64qi) __Y,
64 (__v64qi)
65 _mm512_undefined_si512 (),
66 (__mmask64) -1);
67}
68
69extern __inline __m512i
70__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
71_mm512_permutexvar_epi8 (__m512i __A, __m512i __B)
72{
73 return (__m512i) __builtin_ia32_permvarqi512_mask ((__v64qi) __B,
74 (__v64qi) __A,
75 (__v64qi)
76 _mm512_undefined_si512 (),
77 (__mmask64) -1);
78}
79
80extern __inline __m512i
81__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
82_mm512_maskz_permutexvar_epi8 (__mmask64 __M, __m512i __A,
83 __m512i __B)
84{
85 return (__m512i) __builtin_ia32_permvarqi512_mask ((__v64qi) __B,
86 (__v64qi) __A,
87 (__v64qi)
88 _mm512_setzero_si512(),
89 (__mmask64) __M);
90}
91
92extern __inline __m512i
93__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
94_mm512_mask_permutexvar_epi8 (__m512i __W, __mmask64 __M, __m512i __A,
95 __m512i __B)
96{
97 return (__m512i) __builtin_ia32_permvarqi512_mask ((__v64qi) __B,
98 (__v64qi) __A,
99 (__v64qi) __W,
100 (__mmask64) __M);
101}
102
103extern __inline __m512i
104__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
105_mm512_permutex2var_epi8 (__m512i __A, __m512i __I, __m512i __B)
106{
107 return (__m512i) __builtin_ia32_vpermt2varqi512_mask ((__v64qi) __I
108 /* idx */ ,
109 (__v64qi) __A,
110 (__v64qi) __B,
111 (__mmask64) -
112 1);
113}
114
115extern __inline __m512i
116__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
117_mm512_mask_permutex2var_epi8 (__m512i __A, __mmask64 __U,
118 __m512i __I, __m512i __B)
119{
120 return (__m512i) __builtin_ia32_vpermt2varqi512_mask ((__v64qi) __I
121 /* idx */ ,
122 (__v64qi) __A,
123 (__v64qi) __B,
124 (__mmask64)
125 __U);
126}
127
128extern __inline __m512i
129__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
130_mm512_mask2_permutex2var_epi8 (__m512i __A, __m512i __I,
131 __mmask64 __U, __m512i __B)
132{
133 return (__m512i) __builtin_ia32_vpermi2varqi512_mask ((__v64qi) __A,
134 (__v64qi) __I
135 /* idx */ ,
136 (__v64qi) __B,
137 (__mmask64)
138 __U);
139}
140
141extern __inline __m512i
142__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
143_mm512_maskz_permutex2var_epi8 (__mmask64 __U, __m512i __A,
144 __m512i __I, __m512i __B)
145{
146 return (__m512i) __builtin_ia32_vpermt2varqi512_maskz ((__v64qi) __I
147 /* idx */ ,
148 (__v64qi) __A,
149 (__v64qi) __B,
150 (__mmask64)
151 __U);
152}
153
154#ifdef __DISABLE_AVX512VBMI__
155#undef __DISABLE_AVX512VBMI__
156#pragma GCC pop_options
157#endif /* __DISABLE_AVX512VBMI__ */
158
159#endif /* _AVX512VBMIINTRIN_H_INCLUDED */
Note: See TracBrowser for help on using the repository browser.