rs6000-builtin.def (BU_P7_MISC_X): New #define.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 11 Jan 2018 22:32:41 +0000 (22:32 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Thu, 11 Jan 2018 22:32:41 +0000 (22:32 +0000)
commit02a03501e439cd92b741034c32ce7238a927dff1
tree01038cb60334bf726d4fefe07ee965c682ae2fed
parent1ad6e904d4fbad716bc65ac4d0bbdeecf3f552bc
rs6000-builtin.def (BU_P7_MISC_X): New #define.

[gcc]

2018-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000-builtin.def (BU_P7_MISC_X): New #define.
(SPEC_BARRIER): New instantiation of BU_P7_MISC_X.
* config/rs6000/rs6000.c (rs6000_expand_builtin): Handle
MISC_BUILTIN_SPEC_BARRIER.
(rs6000_init_builtins): Likewise.
* config/rs6000/rs6000.md (UNSPECV_SPEC_BARRIER): New UNSPECV
enum value.
(speculation_barrier): New define_insn.
* doc/extend.texi: Document __builtin_speculation_barrier.

[gcc/testsuite]

2018-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.target/powerpc/spec-barr-1.c: New file.

From-SVN: r256557
gcc/ChangeLog
gcc/config/rs6000/rs6000-builtin.def
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.md
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/spec-barr-1.c [new file with mode: 0644]