Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/predict-1.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do compile } |
2 ! { dg-options "-O2 -fdump-tree-profile_estimate" } | |
3 | |
4 subroutine test(block, array) | |
5 integer :: i, block(9), array(2) | |
6 | |
7 do i = array(1), array(2), 2 | |
8 block(i) = i | |
9 end do | |
10 | |
11 do i = array(1), array(2), -2 | |
12 block(i) = block(i) + i | |
13 end do | |
14 | |
15 end subroutine test | |
16 | |
131 | 17 ! { dg-final { scan-tree-dump-times "Fortran loop preheader heuristics of edge\[^:\]*: 1.00%" 2 "profile_estimate" } } |