OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [mips-sdata-1.c] - Blame information for rev 827

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* 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} } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.