blob: 9a8ad1f5ca1e6337d2ad537a3f436f997d080da2 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2" } */
typedef __seg_gs struct foo_s {
int a[20];
} foo_t;
int sum(void)
{
const foo_t *p = (const foo_t *)0x1234;
int i, total=0;
for (i=0; i<20; i++)
total += p->a[i];
return total;
}
/* { dg-final { scan-assembler "add*.\[ \t\]%gs:" } } */