1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fschedule-insns" } */
3 /* { dg-require-effective-target scheduling } */
5 #define PF_FROZEN 0x00010000
6 #define likely(x) __builtin_expect(!!(x), 1)
14 unsigned long freeze_cnt
;
16 extern int foo(void *);
17 extern int slow_path(void *);
19 static inline int freezing(void *p
)
21 if (likely(!foo(&freeze_cnt
)))
26 extern int blah(void);
28 int testcase(int check_kthr_stop
)
34 (check_kthr_stop
&& blah()))
35 cur
->flags
&= ~PF_FROZEN
;
37 if (!(cur
->flags
& PF_FROZEN
))