| 1 |
/* { dg-do run } */ |
| 2 |
|
| 3 |
#include <stdlib.h> |
| 4 |
|
| 5 |
__attribute__((aligned(32))) static struct |
| 6 |
{ |
| 7 |
unsigned long long available_cmd_ids_per_core[2]; |
| 8 |
} _rl2c_cmd_id_data; |
| 9 |
|
| 10 |
static inline void __attribute__((always_inline)) |
| 11 |
foo (void *base, size_t length) |
| 12 |
{ |
| 13 |
unsigned long int p = (unsigned long int) base; |
| 14 |
if (__builtin_constant_p(p) && (p & 31) == 0) { exit (0); } |
| 15 |
else if (__builtin_constant_p(length)) { exit (0); } |
| 16 |
else { exit (0); } |
| 17 |
} |
| 18 |
|
| 19 |
int main(int argc, char **argv) |
| 20 |
{ |
| 21 |
foo(&_rl2c_cmd_id_data, sizeof(*(&_rl2c_cmd_id_data))); |
| 22 |
return 0; |
| 23 |
} |
| 24 |
|