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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [ia64/] [got-1.c] - Rev 816

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

/* { dg-do compile } */
/* { dg-options "-O2 -fPIC" } */
 
/* { dg-final { scan-assembler "@ltoffx\\(object#\\)" } } */
/* { dg-final { scan-assembler "@ltoffx\\(object#\[-+\]16384\\)" } } */
/* { dg-final { scan-assembler-not "@ltoffx\\(object#\[-+\]1\\)" } } */
/* { dg-final { scan-assembler-not "@ltoffx\\(object#\[-+\]8191\\)" } } */
/* { dg-final { scan-assembler-not "@ltoffx\\(object#\[-+\]8192\\)" } } */
/* { dg-final { scan-assembler-not "@ltoffx\\(object#\[-+\]8193\\)" } } */
/* { dg-final { scan-assembler-not "@ltoffx\\(object#\[-+\]16383\\)" } } */
/* { dg-final { scan-assembler-not "@ltoffx\\(object#\[-+\]16385\\)" } } */
 
/* must not be in sdata */
extern char object[];
 
#define r(n) char *r_##n (void) { return &object[n]; }
#define R(n) char *R_##n (void) { return &object[-n]; }
 
#define t(n) r(n) R(n)
 
t(0) t(1)
t(8191) t(8192) t(8193)
t(16383) t(16384) t(16385)
 

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

powered by: WebSVN 2.1.0

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