Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / 54455.c
blob281c8620a5ef9eb8532b3e6c7f0365090f60d860
1 /* PR rtl-optimization/54455 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -fschedule-insns -fselective-scheduling --param max-sched-extend-regions-iters=2" } */
4 /* { dg-require-effective-target scheduling } */
6 extern void fn1 (void), fn2 (void);
8 static inline __attribute__((always_inline)) int
9 foo (int *x, long y)
11 asm goto ("" : : "r" (x), "r" (y) : "memory" : lab);
12 return 0;
13 lab:
14 return 1;
17 void
18 bar (int *x)
20 if (foo (x, 23))
21 fn1 ();
22 else
23 fn2 ();
25 foo (x, 2);