]>
Commit | Line | Data |
---|---|---|
a945c346 | 1 | /* Copyright (C) 2020-2024 Free Software Foundation, Inc. |
40667594 KL |
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 | #if !defined _IMMINTRIN_H_INCLUDED | |
25 | #error "Never use <avxvnniint8vlintrin.h> directly; include <immintrin.h> instead." | |
26 | #endif | |
27 | ||
28 | #ifndef _AVXVNNIINT8INTRIN_H_INCLUDED | |
29 | #define _AVXVNNIINT8INTRIN_H_INCLUDED | |
30 | ||
31 | #if !defined(__AVXVNNIINT8__) | |
32 | #pragma GCC push_options | |
33 | #pragma GCC target("avxvnniint8") | |
34 | #define __DISABLE_AVXVNNIINT8__ | |
35 | #endif /* __AVXVNNIINT8__ */ | |
36 | ||
37 | extern __inline __m128i | |
38 | __attribute__((__gnu_inline__, __always_inline__, __artificial__)) | |
39 | _mm_dpbssd_epi32 (__m128i __W, __m128i __A, __m128i __B) | |
40 | { | |
41 | return (__m128i) | |
42 | __builtin_ia32_vpdpbssd128 ((__v4si) __W, (__v4si) __A, (__v4si) __B); | |
43 | } | |
44 | ||
45 | extern __inline __m128i | |
46 | __attribute__((__gnu_inline__, __always_inline__, __artificial__)) | |
47 | _mm_dpbssds_epi32 (__m128i __W, __m128i __A, __m128i __B) | |
48 | { | |
49 | return (__m128i) | |
50 | __builtin_ia32_vpdpbssds128 ((__v4si) __W, (__v4si) __A, (__v4si) __B); | |
51 | } | |
52 | ||
53 | extern __inline __m128i | |
54 | __attribute__((__gnu_inline__, __always_inline__, __artificial__)) | |
55 | _mm_dpbsud_epi32 (__m128i __W, __m128i __A, __m128i __B) | |
56 | { | |
57 | return (__m128i) | |
58 | __builtin_ia32_vpdpbsud128 ((__v4si) __W, (__v4si) __A, (__v4si) __B); | |
59 | } | |
60 | ||
61 | extern __inline __m128i | |
62 | __attribute__((__gnu_inline__, __always_inline__, __artificial__)) | |
63 | _mm_dpbsuds_epi32 (__m128i __W, __m128i __A, __m128i __B) | |
64 | { | |
65 | return (__m128i) | |
66 | __builtin_ia32_vpdpbsuds128 ((__v4si) __W, (__v4si) __A, (__v4si) __B); | |
67 | } | |
68 | ||
69 | extern __inline __m128i | |
70 | __attribute__((__gnu_inline__, __always_inline__, __artificial__)) | |
71 | _mm_dpbuud_epi32 (__m128i __W, __m128i __A, __m128i __B) | |
72 | { | |
73 | return (__m128i) | |
74 | __builtin_ia32_vpdpbuud128 ((__v4si) __W, (__v4si) __A, (__v4si) __B); | |
75 | } | |
76 | ||
77 | extern __inline __m128i | |
78 | __attribute__((__gnu_inline__, __always_inline__, __artificial__)) | |
79 | _mm_dpbuuds_epi32 (__m128i __W, __m128i __A, __m128i __B) | |
80 | { | |
81 | return (__m128i) | |
82 | __builtin_ia32_vpdpbuuds128 ((__v4si) __W, (__v4si) __A, (__v4si) __B); | |
83 | } | |
84 | ||
85 | extern __inline __m256i | |
86 | __attribute__((__gnu_inline__, __always_inline__, __artificial__)) | |
87 | _mm256_dpbssd_epi32 (__m256i __W, __m256i __A, __m256i __B) | |
88 | { | |
89 | return (__m256i) | |
90 | __builtin_ia32_vpdpbssd256 ((__v8si) __W, (__v8si) __A, (__v8si) __B); | |
91 | } | |
92 | ||
93 | extern __inline __m256i | |
94 | __attribute__((__gnu_inline__, __always_inline__, __artificial__)) | |
95 | _mm256_dpbssds_epi32 (__m256i __W, __m256i __A, __m256i __B) | |
96 | { | |
97 | return (__m256i) | |
98 | __builtin_ia32_vpdpbssds256 ((__v8si) __W, (__v8si) __A, (__v8si) __B); | |
99 | } | |
100 | ||
101 | extern __inline __m256i | |
102 | __attribute__((__gnu_inline__, __always_inline__, __artificial__)) | |
103 | _mm256_dpbsud_epi32 (__m256i __W, __m256i __A, __m256i __B) | |
104 | { | |
105 | return (__m256i) | |
106 | __builtin_ia32_vpdpbsud256 ((__v8si) __W, (__v8si) __A, (__v8si) __B); | |
107 | } | |
108 | ||
109 | extern __inline __m256i | |
110 | __attribute__((__gnu_inline__, __always_inline__, __artificial__)) | |
111 | _mm256_dpbsuds_epi32 (__m256i __W, __m256i __A, __m256i __B) | |
112 | { | |
113 | return (__m256i) | |
114 | __builtin_ia32_vpdpbsuds256 ((__v8si) __W, (__v8si) __A, (__v8si) __B); | |
115 | } | |
116 | ||
117 | extern __inline __m256i | |
118 | __attribute__((__gnu_inline__, __always_inline__, __artificial__)) | |
119 | _mm256_dpbuud_epi32 (__m256i __W, __m256i __A, __m256i __B) | |
120 | { | |
121 | return (__m256i) | |
122 | __builtin_ia32_vpdpbuud256 ((__v8si) __W, (__v8si) __A, (__v8si) __B); | |
123 | } | |
124 | ||
125 | extern __inline __m256i | |
126 | __attribute__((__gnu_inline__, __always_inline__, __artificial__)) | |
127 | _mm256_dpbuuds_epi32 (__m256i __W, __m256i __A, __m256i __B) | |
128 | { | |
129 | return (__m256i) | |
130 | __builtin_ia32_vpdpbuuds256 ((__v8si) __W, (__v8si) __A, (__v8si) __B); | |
131 | } | |
132 | ||
133 | #ifdef __DISABLE_AVXVNNIINT8__ | |
134 | #undef __DISABLE_AVXVNNIINT8__ | |
135 | #pragma GCC pop_options | |
136 | #endif /* __DISABLE_AVXVNNIINT8__ */ | |
137 | ||
138 | #endif /* __AVXVNNIINT8INTRIN_H_INCLUDED */ |