]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/i386/pconfigintrin.h
d2a3261e47075ec730efdf981d0431ceac325f62
1 #ifndef _IMMINTRIN_H_INCLUDED
2 #error "Never use <pconfigintrin.h> directly; include <immintrin.h> instead."
5 #ifndef _PCONFIGINTRIN_H_INCLUDED
6 #define _PCONFIGINTRIN_H_INCLUDED
9 #pragma GCC push_options
10 #pragma GCC target("pconfig")
11 #define __DISABLE_PCONFIG__
12 #endif /* __PCONFIG__ */
14 #define __pconfig_b(leaf, b, retval) \
15 __asm__ __volatile__ ("pconfig\n\t" \
17 : "a" (leaf), "b" (b) \
20 #define __pconfig_generic(leaf, b, c, d, retval) \
21 __asm__ __volatile__ ("pconfig\n\t" \
22 : "=a" (retval), "=b" (b), "=c" (c), "=d" (d) \
23 : "a" (leaf), "b" (b), "c" (c), "d" (d) \
26 extern __inline
unsigned int
27 __attribute__((__gnu_inline__
, __always_inline__
, __artificial__
))
28 _pconfig_u32 (const unsigned int __L
, size_t __D
[])
32 __PCONFIG_KEY_PROGRAM
= 0x01,
37 if (!__builtin_constant_p (__L
))
38 __pconfig_generic (__L
, __D
[0], __D
[1], __D
[2], __R
);
41 case __PCONFIG_KEY_PROGRAM
:
42 __pconfig_b (__L
, __D
[0], __R
);
45 __pconfig_generic (__L
, __D
[0], __D
[1], __D
[2], __R
);
50 #ifdef __DISABLE_PCONFIG__
51 #undef __DISABLE_PCONFIG__
52 #pragma GCC pop_options
53 #endif /* __DISABLE_PCONFIG__ */
55 #endif /* _PCONFIGINTRIN_H_INCLUDED */