2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / scev-11.c
blobc665fd7f20d241ac3441b7676f72b241c9eccc99
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ivopts-details" } */
4 int a[128];
5 extern int b[];
7 int bar (int *);
9 int
10 foo (int n)
12 int i;
14 for (i = 0; i < n; i++)
16 unsigned char uc = (unsigned char)i;
17 a[i] = i;
18 b[uc] = 0;
21 bar (a);
22 return 0;
25 /* Address of array reference to b is scev. */
26 /* { dg-final { scan-tree-dump-times " Type:\\tREFERENCE ADDRESS\n Use \[0-9\].\[0-9\]:" 2 "ivopts" } } */