Implement x86 pause intrinsic.
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 25 May 2011 13:42:58 +0000 (13:42 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 25 May 2011 13:42:58 +0000 (06:42 -0700)
commit74838de312b5e8abae7c8482d8d7da2268cc9624
tree76212b8d0661bb78a1a0eb60f0cebf288a991c95
parentd24ad7d6e9397bc1514fe39e9855b0ac6a5489a2
Implement x86 pause intrinsic.

gcc/

2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
(bdesc_special_args): Add pause intrinsic.

* config/i386/i386.md (UNSPEC_PAUSE): New.
(pause): Likewise.
(*pause): Likewise.
* config/i386/ia32intrin.h (__pause): Likewise.

* doc/extend.texi (X86 Built-in Functions): Add documentation for
pause intrinsic.

gcc/testsuite/

2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>

 * gcc.target/i386/pause-1.c: New.

From-SVN: r174197
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/config/i386/ia32intrin.h
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pause-1.c [new file with mode: 0644]