]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Use unspec_volatile for darn (PR91481)
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Aug 2019 19:36:21 +0000 (19:36 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Aug 2019 19:36:21 +0000 (19:36 +0000)
commit0708e6fa34a4773d3aa33fe05f5a612334fdd373
tree454c0a2709201967bc81989ce4ba7a1144785ccf
parent372b1a9130550c1d65ee970ecf9166d09b18f966
rs6000: Use unspec_volatile for darn (PR91481)

Every call to darn should deliver a *new* random number; such calls
should not be CSEd together.  So they should be unspec_volatile, not
plain unspec.

PR target/91481
* config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
and UNSPEC_DARN_RAW.
(unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
UNSPECV_DARN_RAW.
(darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
(darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
(darn): Use an unspec_volatile, and UNSPECV_DARN.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@274835 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/rs6000.md