Add PRED_FORTRAN_LOOP_PREHEADER to DO loops with step
authorMartin Liska <mliska@suse.cz>
Thu, 7 Jul 2016 13:11:05 +0000 (15:11 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 7 Jul 2016 13:11:05 +0000 (13:11 +0000)
commit7119f1b1a43b6721cd95fe381378f92f699e967a
treef77f660ff41bf265a42fa278057b4c34ae6acd64
parent0e77949e878dd109ee7daffcda12faa1a8000d29
Add PRED_FORTRAN_LOOP_PREHEADER to DO loops with step

* trans-stmt.c (gfc_trans_do): Add expect builtin for DO
loops with step bigger than +-1.
* gfortran.dg/predict-1.f90: Ammend the test.
* gfortran.dg/predict-2.f90: Likewise.

From-SVN: r238112
gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/predict-1.f90
gcc/testsuite/gfortran.dg/predict-2.f90