URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Check that sdata-accesses are applied regardless of size or ABI. */
|
/* Check that sdata-accesses are applied regardless of size or ABI. */
|
/* { dg-options -mexplicit-relocs } */
|
/* { dg-options -mexplicit-relocs } */
|
/* { dg-do compile { target mips*-*-elf* } } */
|
/* { dg-do compile { target mips*-*-elf* } } */
|
|
|
struct s { int x[4]; };
|
struct s { int x[4]; };
|
struct s my_struct __attribute__((__section__(".sdata")));
|
struct s my_struct __attribute__((__section__(".sdata")));
|
|
|
int f() { return my_struct.x[0]; }
|
int f() { return my_struct.x[0]; }
|
|
|
/* { dg-final { scan-assembler {gp_?rel\(my_struct} } } */
|
/* { dg-final { scan-assembler {gp_?rel\(my_struct} } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.