gcc/testsuite/gcc.target/arc/tdelegitimize_addr.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-skip-if "" { ! { clmcpu } } } */ |
| 3 | /* { dg-options "-mcpu=archs -g -O1 -fpic -mlra" } */ |
| 4 | |
| 5 | /* Check if delegitimize address returns correctly the un-obfuscated |
| 6 | address. */ |
| 7 | |
| 8 | typedef struct { |
| 9 | long long tv_usec; |
| 10 | } t_a; |
| 11 | |
| 12 | static t_a a; |
| 13 | |
| 14 | int b; |
| 15 | extern void fn2 (t_a); |
| 16 | |
| 17 | void fn1 (void) |
| 18 | { |
| 19 | again: |
| 20 | fn2(a); |
| 21 | if (b) |
| 22 | goto again; |
| 23 | } |