Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-12.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 "-O -fdump-tree-lim2" } */ | |
3 | |
4 int a[1024]; | |
5 | |
6 void foo (int x, int z) | |
7 { | |
8 int i; | |
9 int y = -x; | |
10 for (i = 0; i < 1024; ++i) | |
11 a[i] = x ? y : z; | |
12 } | |
13 | |
14 void bar (int x, int z) | |
15 { | |
16 int j; | |
17 for (j = 0; j < 1024; ++j) | |
18 { | |
19 int i; | |
20 int y = -j + z; | |
21 for (i = 0; i < 1024; ++i) | |
22 a[i] = x ? y : j; | |
23 } | |
24 } | |
25 | |
26 /* { dg-final { scan-tree-dump-times "!= 0 ? " 2 "lim2" } } */ |