Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/loop-11.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* A test for final value replacement and higher-order ivs, see PR 22442. */ /* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-optimized" } */ void bar (unsigned); void foo (void) { unsigned i, a; for (i = 0; i < 5; i++) a = i * i; bar (a); } /* Final value of a gets replaced. */ /* { dg-final { scan-tree-dump-times "\\(16\\)" 1 "optimized" } } */ /* And the empty loop is removed. */ /* { dg-final { scan-tree-dump-times "if " 0 "optimized" } } */