]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/i386/avxvnniint8intrin.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / i386 / avxvnniint8intrin.h
CommitLineData
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
37extern __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
45extern __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
53extern __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
61extern __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
69extern __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
77extern __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
85extern __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
93extern __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
101extern __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
109extern __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
117extern __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
125extern __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 */