htm.md (UNSPEC_HTM_FENCE): New.
authorPeter Bergner <bergner@vnet.ibm.com>
Wed, 14 Oct 2015 21:28:06 +0000 (16:28 -0500)
committerPeter Bergner <bergner@gcc.gnu.org>
Wed, 14 Oct 2015 21:28:06 +0000 (16:28 -0500)
commit4c1f41e15229f5c53d9b12fc8790009889935008
treef1690cbac145c7fab5216d99200a30e9b09d23f5
parenta409ca75d60c5044111c410eb9f30ce806425519
htm.md (UNSPEC_HTM_FENCE): New.

* config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
(tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
(*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
*trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
(tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
trechkpt, treclaim, tsr, ttest): New define_expands.
* config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
__TM_FENCE__ for htm.
* doc/extend.texi: Update documentation for htm builtins.

Co-Authored-By: Torvald Riegel <triegel@redhat.com>
From-SVN: r228827
gcc/ChangeLog
gcc/config/rs6000/htm.md
gcc/config/rs6000/rs6000-c.c
gcc/doc/extend.texi