GCN: Wait for exit value to write before exiting.
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 24 May 2019 15:25:41 +0000 (15:25 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Fri, 24 May 2019 15:25:41 +0000 (15:25 +0000)
commite8daba7e0630c75c1e1d989f18c282b43fc2e1ef
treef0ad62113011170fcfa2baf8f514b2a0e831fad6
parentc2465daec4df2d1a03be26a1fa9147382964a16e
GCN: Wait for exit value to write before exiting.

2019-05-24  Andrew Stubbs  <ams@codesourcery.com>

gcc/
* config/gcn/gcn-run.c (main): Set a non-zero return value if the
kernel does not exit cleanly.
* config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.

From-SVN: r271605
gcc/ChangeLog
gcc/config/gcn/gcn-run.c
gcc/config/gcn/gcn.md