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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [ia64/] [got-1.c] - Blame information for rev 328

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

Line No. Rev Author Line
1 319 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fPIC" } */
3
 
4
/* { dg-final { scan-assembler "@ltoffx\\(object#\\)" } } */
5
/* { dg-final { scan-assembler "@ltoffx\\(object#\[-+\]16384\\)" } } */
6
/* { dg-final { scan-assembler-not "@ltoffx\\(object#\[-+\]1\\)" } } */
7
/* { dg-final { scan-assembler-not "@ltoffx\\(object#\[-+\]8191\\)" } } */
8
/* { dg-final { scan-assembler-not "@ltoffx\\(object#\[-+\]8192\\)" } } */
9
/* { dg-final { scan-assembler-not "@ltoffx\\(object#\[-+\]8193\\)" } } */
10
/* { dg-final { scan-assembler-not "@ltoffx\\(object#\[-+\]16383\\)" } } */
11
/* { dg-final { scan-assembler-not "@ltoffx\\(object#\[-+\]16385\\)" } } */
12
 
13
/* must not be in sdata */
14
extern char object[];
15
 
16
#define r(n) char *r_##n (void) { return &object[n]; }
17
#define R(n) char *R_##n (void) { return &object[-n]; }
18
 
19
#define t(n) r(n) R(n)
20
 
21
t(0) t(1)
22
t(8191) t(8192) t(8193)
23
t(16383) t(16384) t(16385)

powered by: WebSVN 2.1.0

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