1 /* Check that the GBR address optimization works when the GBR register
2 definition is not in the same basic block where the GBR memory accesses
4 /* { dg-do compile } */
5 /* { dg-options "-O1" } */
6 /* { dg-final { scan-assembler-not "stc\tgbr" } } */
14 test_00 (int a
, tcb_t
* b
, int c
)
16 tcb_t
* tcb
= (tcb_t
*)__builtin_thread_pointer ();
17 return (a
& 5) ? tcb
->x
: tcb
->w
;