Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-12.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-lim2" } */ int a[1024]; void foo (int x, int z) { int i; int y = -x; for (i = 0; i < 1024; ++i) a[i] = x ? y : z; } void bar (int x, int z) { int j; for (j = 0; j < 1024; ++j) { int i; int y = -j + z; for (i = 0; i < 1024; ++i) a[i] = x ? y : j; } } /* { dg-final { scan-tree-dump-times "!= 0 ? " 2 "lim2" } } */