Debian Codegraph @

gcc/testsuite/gcc.dg/torture/mips-sdata-1.c

raw
1 /* Check that sdata-accesses are applied regardless of size or ABI. */
2 /* { dg-options -mexplicit-relocs } */
3 /* { dg-do compile { target mips*-*-elf* } } */
4
5 struct s { int x[4]; };
6 struct s my_struct __attribute__((__section__(".sdata")));
7
8 int f() { return my_struct.x[0]; }
9
10 /* { dg-final { scan-assembler {gp_?rel\(my_struct} } } */