PR c++/37276
[official-gcc.git] / gcc / testsuite / gcc.dg / 54455.c
blobde68a53e2335c1175560c0ddf67c7e3fa029a9a8
1 /* PR rtl-optimization/54455 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -fschedule-insns -fselective-scheduling --param max-sched-extend-regions-iters=2" } */
5 extern void fn1 (void), fn2 (void);
7 static inline __attribute__((always_inline)) int
8 foo (int *x, long y)
10 asm goto ("" : : "r" (x), "r" (y) : "memory" : lab);
11 return 0;
12 lab:
13 return 1;
16 void
17 bar (int *x)
19 if (foo (x, 23))
20 fn1 ();
21 else
22 fn2 ();
24 foo (x, 2);