Add IA MCU support to x86intrin.h
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 3 Jul 2015 12:25:10 +0000 (12:25 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 3 Jul 2015 12:25:10 +0000 (05:25 -0700)
commit2fd98c0acf6ab7725349d26a342003b1bd07e8a0
tree147a61707a10286355e9bdd23ff95d246142337c
parent07cdc2b892ca3969fd5d8c6a281cf77f559cea43
Add IA MCU support to x86intrin.h

x86intrin.h has useful intrinsics for instructions for IA MCU.  This
patch adds __iamcu__ check to x86intrin.h and ia32intrin.h.

gcc/

PR target/66746.
* config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
is defined.
(__crc32w): Likewise.
(__crc32d): Likewise.
(__rdpmc): Likewise.
(__rdtscp): Likewise.
(_rdpmc): Likewise.
(_rdtscp): Likewise.
* config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
is defined.

gcc/testsuite/

PR target/66746.
* gcc.target/i386/pr66746.c: New file.

From-SVN: r225376
gcc/ChangeLog
gcc/config/i386/ia32intrin.h
gcc/config/i386/x86intrin.h
gcc/testsuite/ChangeLog