Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr66768.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 typedef __seg_gs struct foo_s {
5 int a[20];
6 } foo_t;
7
8 int sum(void)
9 {
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;
15 }
16
17 /* { dg-final { scan-assembler "add*.\[ \t\]%gs:" } } */