ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/arc/uncached-3.c

23 lines
290 B
C

/* { dg-do compile } */
typedef volatile struct {
int a;
char *b;
} __attribute__((uncached)) my_type_t;
my_type_t x;
void foo (my_type_t *p)
{
p->a = 10;
p->b = 0;
}
void bar (void)
{
x.a = 10;
x.b = 0;
}
/* { dg-final { scan-assembler-times "st\.di" 4 } } */