Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/scev-10.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fdump-tree-ivopts-details" } */ | |
3 | |
4 int *a; | |
5 | |
6 int | |
7 foo (signed char s, signed char l) | |
8 { | |
9 signed char i; | |
10 int sum = 0; | |
11 | |
12 for (i = s; i < l; i++) | |
13 { | |
14 sum += a[i]; | |
15 } | |
16 | |
17 return sum; | |
18 } | |
19 | |
20 /* Address of array reference is scev. */ | |
131 | 21 /* { dg-final { scan-tree-dump-times " Type:\\tREFERENCE ADDRESS\n Use \[0-9\].\[0-9\]:" 1 "ivopts" } } */ |
111 | 22 |