]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add <lzcntintrin.h>, <bmiintrin.h> and <bmi2intrin.h> to <immintrin.h>.
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 26 Aug 2011 15:45:32 +0000 (15:45 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 26 Aug 2011 15:45:32 +0000 (08:45 -0700)
2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/bmi2intrin.h: Allow in <immintrin.h>.
* config/i386/bmiintrin.h: Likewise.
* config/i386/lzcntintrin.h: Likewise.

* config/i386/immintrin.h: Include <lzcntintrin.h>,
<bmiintrin.h> and <bmi2intrin.h>.

From-SVN: r178117

gcc/ChangeLog
gcc/config/i386/bmi2intrin.h
gcc/config/i386/bmiintrin.h
gcc/config/i386/immintrin.h
gcc/config/i386/lzcntintrin.h

index 0e7597c96ffa14cc7c681d1b34444c06a12175c2..3cbab3ebddeffafa7ad0ab7acae32a3a7050f435 100644 (file)
@@ -1,3 +1,12 @@
+2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
+       * config/i386/bmiintrin.h: Likewise.
+       * config/i386/lzcntintrin.h: Likewise.
+
+       * config/i386/immintrin.h: Include <lzcntintrin.h>,
+       <bmiintrin.h> and <bmi2intrin.h>.
+
 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        PR target/50166
index f3ffa52a916cb8257b770d786d92c24146cb7627..a72c9a985eefa067a9668a91f3433d45b08ee289 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2010, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011 Free Software Foundation, Inc.
 
    This file is part of GCC.
 
@@ -21,7 +21,7 @@
    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _X86INTRIN_H_INCLUDED
+#if !defined _X86INTRIN_H_INCLUDED && !defined _IMMINTRIN_H_INCLUDED
 # error "Never use <bmi2intrin.h> directly; include <x86intrin.h> instead."
 #endif
 
index 1699c61d24e7c818cc6b265758a1867528911ae6..af5d9dc648007220c9330c2536d508b3dfecb5a7 100644 (file)
@@ -21,7 +21,7 @@
    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _X86INTRIN_H_INCLUDED
+#if !defined _X86INTRIN_H_INCLUDED && !defined _IMMINTRIN_H_INCLUDED
 # error "Never use <bmiintrin.h> directly; include <x86intrin.h> instead."
 #endif
 
index 3704df72c07fc0ece8fdd3b0ad94cde519ab732c..d2e715ff1dfee9eaf41ce7978c52c09065ebe068 100644 (file)
 #include <avx2intrin.h>
 #endif
 
+#ifdef __LZCNT__
+#include <lzcntintrin.h>
+#endif
+
+#ifdef __BMI__
+#include <bmiintrin.h>
+#endif
+
+#ifdef __BMI2__
+#include <bmi2intrin.h>
+#endif
+
 #ifdef __RDRND__
 extern __inline int
 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
index 8df01d28ea3fed3dd3f7f340cad5413aa1705baa..31db7dc086cb4d19292498fcf863faeb00dbd8dc 100644 (file)
@@ -21,7 +21,7 @@
    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _X86INTRIN_H_INCLUDED
+#if !defined _X86INTRIN_H_INCLUDED && !defined _IMMINTRIN_H_INCLUDED
 # error "Never use <lzcntintrin.h> directly; include <x86intrin.h> instead."
 #endif