Debian Codegraph @

gcc/testsuite/gcc.dg/pr110079.c

raw
1 /* PR rtl-optimization/110079 */
2 /* { dg-do compile { target { nvptx-*-* || lra } } } */
3 /* { dg-options "-O2" } */
4 /* { dg-additional-options "-freorder-blocks-and-partition" { target freorder } } */
5
6 int a;
7 __attribute__((cold)) int bar (char *);
8 __attribute__((hot)) int baz (char *);
9
10 void
11 foo (void)
12 {
13 l1:
14 while (a)
15 ;
16 bar ("");
17 asm goto ("" : : : : l2);
18 asm ("");
19 l2:
20 goto l1;
21 }
22
23 void
24 qux (void)
25 {
26 asm goto ("" : : : : l1);
27 bar ("");
28 goto l1;
29 l1:
30 baz ("");
31 }
32
33 void
34 corge (void)
35 {
36 asm goto ("" : : : : l1);
37 baz ("");
38 l2:
39 return;
40 l1:
41 bar ("");
42 goto l2;
43 }