gcc/testsuite/gcc.target/arc/uncached-3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | typedef volatile struct { |
| 4 | int a; |
| 5 | char *b; |
| 6 | } __attribute__((uncached)) my_type_t; |
| 7 | |
| 8 | my_type_t x; |
| 9 | |
| 10 | void foo (my_type_t *p) |
| 11 | { |
| 12 | p->a = 10; |
| 13 | p->b = 0; |
| 14 | } |
| 15 | |
| 16 | void bar (void) |
| 17 | { |
| 18 | x.a = 10; |
| 19 | x.b = 0; |
| 20 | } |
| 21 | |
| 22 | /* { dg-final { scan-assembler-times "st\.di" 4 } } */ |