PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr66768.c
blob9a8ad1f5ca1e6337d2ad537a3f436f997d080da2
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 typedef __seg_gs struct foo_s {
5 int a[20];
6 } foo_t;
8 int sum(void)
10 const foo_t *p = (const foo_t *)0x1234;
11 int i, total=0;
12 for (i=0; i<20; i++)
13 total += p->a[i];
14 return total;
17 /* { dg-final { scan-assembler "add*.\[ \t\]%gs:" } } */