]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/i386/avxvnniint8intrin.h
1 /* Copyright (C) 2020-2024 Free Software Foundation, Inc.
3 This file is part of GCC.
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)
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.
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.
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/>. */
24 #if !defined _IMMINTRIN_H_INCLUDED
25 #error "Never use <avxvnniint8vlintrin.h> directly; include <immintrin.h> instead."
28 #ifndef _AVXVNNIINT8INTRIN_H_INCLUDED
29 #define _AVXVNNIINT8INTRIN_H_INCLUDED
31 #if !defined(__AVXVNNIINT8__)
32 #pragma GCC push_options
33 #pragma GCC target("avxvnniint8")
34 #define __DISABLE_AVXVNNIINT8__
35 #endif /* __AVXVNNIINT8__ */
37 extern __inline __m128i
38 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
39 _mm_dpbssd_epi32 (__m128i __W
, __m128i __A
, __m128i __B
)
42 __builtin_ia32_vpdpbssd128 ((__v4si
) __W
, (__v4si
) __A
, (__v4si
) __B
);
45 extern __inline __m128i
46 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
47 _mm_dpbssds_epi32 (__m128i __W
, __m128i __A
, __m128i __B
)
50 __builtin_ia32_vpdpbssds128 ((__v4si
) __W
, (__v4si
) __A
, (__v4si
) __B
);
53 extern __inline __m128i
54 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
55 _mm_dpbsud_epi32 (__m128i __W
, __m128i __A
, __m128i __B
)
58 __builtin_ia32_vpdpbsud128 ((__v4si
) __W
, (__v4si
) __A
, (__v4si
) __B
);
61 extern __inline __m128i
62 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
63 _mm_dpbsuds_epi32 (__m128i __W
, __m128i __A
, __m128i __B
)
66 __builtin_ia32_vpdpbsuds128 ((__v4si
) __W
, (__v4si
) __A
, (__v4si
) __B
);
69 extern __inline __m128i
70 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
71 _mm_dpbuud_epi32 (__m128i __W
, __m128i __A
, __m128i __B
)
74 __builtin_ia32_vpdpbuud128 ((__v4si
) __W
, (__v4si
) __A
, (__v4si
) __B
);
77 extern __inline __m128i
78 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
79 _mm_dpbuuds_epi32 (__m128i __W
, __m128i __A
, __m128i __B
)
82 __builtin_ia32_vpdpbuuds128 ((__v4si
) __W
, (__v4si
) __A
, (__v4si
) __B
);
85 extern __inline __m256i
86 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
87 _mm256_dpbssd_epi32 (__m256i __W
, __m256i __A
, __m256i __B
)
90 __builtin_ia32_vpdpbssd256 ((__v8si
) __W
, (__v8si
) __A
, (__v8si
) __B
);
93 extern __inline __m256i
94 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
95 _mm256_dpbssds_epi32 (__m256i __W
, __m256i __A
, __m256i __B
)
98 __builtin_ia32_vpdpbssds256 ((__v8si
) __W
, (__v8si
) __A
, (__v8si
) __B
);
101 extern __inline __m256i
102 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
103 _mm256_dpbsud_epi32 (__m256i __W
, __m256i __A
, __m256i __B
)
106 __builtin_ia32_vpdpbsud256 ((__v8si
) __W
, (__v8si
) __A
, (__v8si
) __B
);
109 extern __inline __m256i
110 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
111 _mm256_dpbsuds_epi32 (__m256i __W
, __m256i __A
, __m256i __B
)
114 __builtin_ia32_vpdpbsuds256 ((__v8si
) __W
, (__v8si
) __A
, (__v8si
) __B
);
117 extern __inline __m256i
118 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
119 _mm256_dpbuud_epi32 (__m256i __W
, __m256i __A
, __m256i __B
)
122 __builtin_ia32_vpdpbuud256 ((__v8si
) __W
, (__v8si
) __A
, (__v8si
) __B
);
125 extern __inline __m256i
126 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
127 _mm256_dpbuuds_epi32 (__m256i __W
, __m256i __A
, __m256i __B
)
130 __builtin_ia32_vpdpbuuds256 ((__v8si
) __W
, (__v8si
) __A
, (__v8si
) __B
);
133 #ifdef __DISABLE_AVXVNNIINT8__
134 #undef __DISABLE_AVXVNNIINT8__
135 #pragma GCC pop_options
136 #endif /* __DISABLE_AVXVNNIINT8__ */
138 #endif /* __AVXVNNIINT8INTRIN_H_INCLUDED */