blob: 69daf2374830b941d38fb78b9d16a5d38c61657d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* { dg-options "-O2 -fdump-ipa-profile -fprofile-update=atomic" } */
/* { dg-require-effective-target profile_update_atomic } */
__attribute__ ((noinline))
int foo()
{
return 0;
}
__attribute__ ((noinline))
int bar()
{
return 1;
}
int main ()
{
return foo ();
}
/* { dg-final-use-not-autofdo { scan-ipa-dump-times "Read tp_first_run: 1" 1 "profile"} } */
/* { dg-final-use-not-autofdo { scan-ipa-dump-times "Read tp_first_run: 2" 1 "profile"} } */
/* { dg-final-use-not-autofdo { scan-ipa-dump-times "Read tp_first_run: 3" 1 "profile"} } */
|