Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-prof/val-prof-6.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-options "-O2 -fdump-tree-optimized" } */ char a[1000]; char b[1000]; int size=1000; __attribute__ ((noinline)) void t(int size) { __builtin_memcpy(a,b,size); } int main() { int i; for (i=0; i < size; i++) t(i); return 0; } /* autofdo does not do value profiling so far */ /* { dg-final-use-not-autofdo { scan-tree-dump "Average value sum:499500" "optimized"} } */ /* { dg-final-use-not-autofdo { scan-tree-dump "IOR value" "optimized"} } */