From: H.J. Lu Date: Mon, 21 Jan 2019 12:23:49 +0000 (+0000) Subject: i386: Move Intel intrinsics head files to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c0d746f66cd349be052ca207e2397570f8aa314;p=gcc.git i386: Move Intel intrinsics head files to According to Intel Intrinsics Guide: https://software.intel.com/sites/landingpage/IntrinsicsGuide/ Intel intrinsics should be available by including . This patch moves remaining Intel intrinsics head files from to . PR target/71659 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED. * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED instead of _X86INTRIN_H_INCLUDED. * onfig/i386/clwbintrin.h: Likewise. * config/i386/pkuintrin.h: Likewise. * config/i386/prfchwintrin.h: Likewise. * config/i386/rdseedintrin.h: Likewise. * config/i386/wbnoinvdintrin.h: Likewise. * config/i386/xsavecintrin.h: Likewise. * config/i386/xsavesintrin.h: Likewise. * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check. * config/i386/xsaveintrin.h: Likewise. * config/i386/xsaveoptintrin.h: Likewise. * config/i386/x86intrin.h: Move "#include" , , , , , , , , , , and to ... * config/i386/immintrin.h: Here. From-SVN: r268113 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6ce35e078b8..6fbfef4854b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,26 @@ +2019-01-21 H.J. Lu + + PR target/71659 + * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED. + * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED + instead of _X86INTRIN_H_INCLUDED. + * onfig/i386/clwbintrin.h: Likewise. + * config/i386/pkuintrin.h: Likewise. + * config/i386/prfchwintrin.h: Likewise. + * config/i386/rdseedintrin.h: Likewise. + * config/i386/wbnoinvdintrin.h: Likewise. + * config/i386/xsavecintrin.h: Likewise. + * config/i386/xsavesintrin.h: Likewise. + * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check. + * config/i386/xsaveintrin.h: Likewise. + * config/i386/xsaveoptintrin.h: Likewise. + * config/i386/x86intrin.h: Move "#include" , + , , , + , , , + , , , + and to ... + * config/i386/immintrin.h: Here. + 2019-01-20 Martin Jambor PR ipa/87615 diff --git a/gcc/config/i386/adxintrin.h b/gcc/config/i386/adxintrin.h index e01b77ddb4b..e8cb004390c 100644 --- a/gcc/config/i386/adxintrin.h +++ b/gcc/config/i386/adxintrin.h @@ -21,8 +21,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -#if !defined _X86INTRIN_H_INCLUDED && !defined _IMMINTRIN_H_INCLUDED -# error "Never use directly; include instead." +#if !defined _IMMINTRIN_H_INCLUDED +# error "Never use directly; include instead." #endif #ifndef _ADXINTRIN_H_INCLUDED diff --git a/gcc/config/i386/clflushoptintrin.h b/gcc/config/i386/clflushoptintrin.h index 1e720c2515c..89aa0f68fc2 100644 --- a/gcc/config/i386/clflushoptintrin.h +++ b/gcc/config/i386/clflushoptintrin.h @@ -21,8 +21,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -#if !defined _X86INTRIN_H_INCLUDED -# error "Never use directly; include instead." +#if !defined _IMMINTRIN_H_INCLUDED +# error "Never use directly; include instead." #endif #ifndef _CLFLUSHOPTINTRIN_H_INCLUDED diff --git a/gcc/config/i386/clwbintrin.h b/gcc/config/i386/clwbintrin.h index 217fb3babf2..68b20ea1635 100644 --- a/gcc/config/i386/clwbintrin.h +++ b/gcc/config/i386/clwbintrin.h @@ -21,8 +21,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -#if !defined _X86INTRIN_H_INCLUDED -# error "Never use directly; include instead." +#if !defined _IMMINTRIN_H_INCLUDED +# error "Never use directly; include instead." #endif #ifndef _CLWBINTRIN_H_INCLUDED diff --git a/gcc/config/i386/fxsrintrin.h b/gcc/config/i386/fxsrintrin.h index ff6c6f848eb..c4b12cf25f3 100644 --- a/gcc/config/i386/fxsrintrin.h +++ b/gcc/config/i386/fxsrintrin.h @@ -21,9 +21,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -/* #if !defined _X86INTRIN_H_INCLUDED && !defined _IMMINTRIN_H_INCLUDED */ -/* # error "Never use directly; include instead." */ -/* #endif */ +#if !defined _IMMINTRIN_H_INCLUDED +# error "Never use directly; include instead." +#endif #ifndef _FXSRINTRIN_H_INCLUDED #define _FXSRINTRIN_H_INCLUDED diff --git a/gcc/config/i386/immintrin.h b/gcc/config/i386/immintrin.h index 6ce00012b42..10e1f27c605 100644 --- a/gcc/config/i386/immintrin.h +++ b/gcc/config/i386/immintrin.h @@ -38,6 +38,16 @@ #include +#include + +#include + +#include + +#include + +#include + #include #include @@ -120,6 +130,20 @@ #include +#include + +#include + +#include + +#include + +#include + +#include + +#include + extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _wbinvd (void) diff --git a/gcc/config/i386/pkuintrin.h b/gcc/config/i386/pkuintrin.h index 727bec5dda8..be46522f0c0 100644 --- a/gcc/config/i386/pkuintrin.h +++ b/gcc/config/i386/pkuintrin.h @@ -21,8 +21,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -#if !defined _X86INTRIN_H_INCLUDED -# error "Never use directly; include instead." +#if !defined _IMMINTRIN_H_INCLUDED +# error "Never use directly; include instead." #endif #ifndef _PKUINTRIN_H_INCLUDED diff --git a/gcc/config/i386/prfchwintrin.h b/gcc/config/i386/prfchwintrin.h index dab46395cd4..3ecf9088ee6 100644 --- a/gcc/config/i386/prfchwintrin.h +++ b/gcc/config/i386/prfchwintrin.h @@ -21,8 +21,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -#if !defined _X86INTRIN_H_INCLUDED && !defined _MM3DNOW_H_INCLUDED -# error "Never use directly; include or instead." +#if !defined _IMMINTRIN_H_INCLUDED && !defined _MM3DNOW_H_INCLUDED +# error "Never use directly; include or instead." #endif #ifndef _PRFCHWINTRIN_H_INCLUDED diff --git a/gcc/config/i386/rdseedintrin.h b/gcc/config/i386/rdseedintrin.h index 56c7ec85535..73c07637970 100644 --- a/gcc/config/i386/rdseedintrin.h +++ b/gcc/config/i386/rdseedintrin.h @@ -21,8 +21,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -#if !defined _X86INTRIN_H_INCLUDED -# error "Never use directly; include instead." +#if !defined _IMMINTRIN_H_INCLUDED +# error "Never use directly; include instead." #endif #ifndef _RDSEEDINTRIN_H_INCLUDED diff --git a/gcc/config/i386/wbnoinvdintrin.h b/gcc/config/i386/wbnoinvdintrin.h index 9312a0082c9..5393698c6bb 100644 --- a/gcc/config/i386/wbnoinvdintrin.h +++ b/gcc/config/i386/wbnoinvdintrin.h @@ -1,5 +1,5 @@ -#ifndef _X86INTRIN_H_INCLUDED -#error "Never use directly; include instead." +#ifndef _IMMINTRIN_H_INCLUDED +#error "Never use directly; include instead." #endif #ifndef _WBNOINVDINTRIN_H_INCLUDED diff --git a/gcc/config/i386/x86intrin.h b/gcc/config/i386/x86intrin.h index 0eb8d88aeb8..6a08806ed7c 100644 --- a/gcc/config/i386/x86intrin.h +++ b/gcc/config/i386/x86intrin.h @@ -43,38 +43,10 @@ #include -#include - -#include - -#include - -#include - -#include - -#endif /* __iamcu__ */ - -#include - -#ifndef __iamcu__ - -#include - -#include - -#include - -#include - #include #include -#include - -#include - #endif /* __iamcu__ */ #endif /* _X86INTRIN_H_INCLUDED */ diff --git a/gcc/config/i386/xsavecintrin.h b/gcc/config/i386/xsavecintrin.h index c61f2d69b2a..d7aa43534e5 100644 --- a/gcc/config/i386/xsavecintrin.h +++ b/gcc/config/i386/xsavecintrin.h @@ -21,8 +21,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -#if !defined _X86INTRIN_H_INCLUDED -# error "Never use directly; include instead." +#if !defined _IMMINTRIN_H_INCLUDED +# error "Never use directly; include instead." #endif #ifndef _XSAVECINTRIN_H_INCLUDED diff --git a/gcc/config/i386/xsaveintrin.h b/gcc/config/i386/xsaveintrin.h index 3ab1c108c8c..77f9667b63b 100644 --- a/gcc/config/i386/xsaveintrin.h +++ b/gcc/config/i386/xsaveintrin.h @@ -21,9 +21,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -/* #if !defined _X86INTRIN_H_INCLUDED && !defined _IMMINTRIN_H_INCLUDED */ -/* # error "Never use directly; include instead." */ -/* #endif */ +#if !defined _IMMINTRIN_H_INCLUDED +# error "Never use directly; include instead." +#endif #ifndef _XSAVEINTRIN_H_INCLUDED #define _XSAVEINTRIN_H_INCLUDED diff --git a/gcc/config/i386/xsaveoptintrin.h b/gcc/config/i386/xsaveoptintrin.h index ae62107b647..2a0bf0b334e 100644 --- a/gcc/config/i386/xsaveoptintrin.h +++ b/gcc/config/i386/xsaveoptintrin.h @@ -21,9 +21,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -/* #if !defined _X86INTRIN_H_INCLUDED && !defined _IMMINTRIN_H_INCLUDED */ -/* # error "Never use directly; include instead." */ -/* #endif */ +#if !defined _IMMINTRIN_H_INCLUDED +# error "Never use directly; include instead." +#endif #ifndef _XSAVEOPTINTRIN_H_INCLUDED #define _XSAVEOPTINTRIN_H_INCLUDED diff --git a/gcc/config/i386/xsavesintrin.h b/gcc/config/i386/xsavesintrin.h index 1abc0b331c5..9d9d035a111 100644 --- a/gcc/config/i386/xsavesintrin.h +++ b/gcc/config/i386/xsavesintrin.h @@ -21,8 +21,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -#if !defined _X86INTRIN_H_INCLUDED -# error "Never use directly; include instead." +#if !defined _IMMINTRIN_H_INCLUDED +# error "Never use directly; include instead." #endif #ifndef _XSAVESINTRIN_H_INCLUDED