Some fixes for profile test cases for autofdo
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / val-prof-7.c
blob9765b997effaad1825644f5e5f73895a79ca9cfc
1 /* { dg-options "-O2 -fdump-ipa-profile -mtune=core2" } */
2 /* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } { "*" } { "" } } */
4 extern void bzero (void *, __SIZE_TYPE__);
6 int foo(int len)
8 char array[1000];
9 bzero(array, len);
10 return 0;
13 int main() {
14 int i;
15 for (i = 0; i < 1000; i++)
17 if (i > 990)
18 foo(16);
19 else
20 foo(8);
22 return 0;
25 /* { dg-final-use-not-autofdo { scan-ipa-dump "Single value 8 stringop transformation on bzero" "profile" } } */