1 /* Check that the GBR address optimization works when there are multiple
2 GBR register definitions and function calls, if the GBR is marked as a
3 call saved register. */
4 /* { dg-do compile } */
5 /* { dg-options "-O1 -fcall-saved-gbr" } */
6 /* { dg-final { scan-assembler-not "stc\tgbr" } } */
13 extern void test_00 (void);
16 test_01 (int x
, volatile int* y
, int a
)
23 tcb_t
* tcb
= (tcb_t
*)__builtin_thread_pointer ();
24 return (a
& 5) ? tcb
->x
: tcb
->w
;