Allow <adxintrin.h> for IA MCU
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 8 Jul 2015 20:01:36 +0000 (20:01 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 8 Jul 2015 20:01:36 +0000 (13:01 -0700)
It is OK to include <adxintrin.h> for IA MCU since GCC can generate ADX
intrinsics with alternative instuctions if ADX isn't enabled.

PR target/66746
* config/i386/x86intrin.h: Include <adxintrin.h> even if
__iamcu__ is defined.

From-SVN: r225580

gcc/ChangeLog
gcc/config/i386/x86intrin.h

index 0befd6c7f6a08bb56093ee9e2963079e672a0e48..bbab89ba0b988a05a69e87fedc232e96202f0c99 100644 (file)
@@ -1,3 +1,9 @@
+2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/66746
+       * config/i386/x86intrin.h: Include <adxintrin.h> even if
+       __iamcu__ is defined.
+
 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
index be0a1a14a0871eadd8ee4474cc357248fef5e9cd..3ff571d24f4c6e75a96e811d5e14797de7c792e8 100644 (file)
 
 #include <xsaveoptintrin.h>
 
+#endif /* __iamcu__ */
+
 #include <adxintrin.h>
 
+#ifndef __iamcu__
+
 #include <clwbintrin.h>
 
 #include <pcommitintrin.h>