Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-16.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* Note PRE and DOM jump threading rotate the loop and blocks the sinking opportunity. */ /* { dg-options "-O2 -fno-tree-pre -fno-tree-dominator-opts -fdump-tree-sink -fdump-tree-optimized" } */ int f(int n) { int i,j=0; for (i = 0; i < 31; i++) j = __builtin_ffs(i); return j; } /* { dg-final { scan-tree-dump "Sinking j_. = __builtin_ffs" "sink" } } */ /* { dg-final { scan-tree-dump "return 2;" "optimized" } } */