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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [ia64/] [fptr-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile { target ia64-*-linux* } } */
2
/* { dg-options "-O2" } */
3
 
4
/* { dg-final { scan-assembler-not "@ltoffx\\(os_boot_rendez#\\)" } } */
5
/* { dg-final { scan-assembler "@ltoff\\(@fptr\\(os_boot_rendez#\\)\\)" } } */
6
 
7
/* Test function descriptor access.  */
8
 
9
struct ia64_fdesc
10
{
11
  unsigned long func;
12
  unsigned long gp;
13
};
14
 
15
void
16
os_boot_rendez (void)
17
{
18
}
19
 
20
extern int check (unsigned long);
21
 
22
int
23
main (int argc, char **argv)
24
{
25
  int i;
26
  int res = 0;
27
 
28
  for (i = 0; i < 1; i++)
29
    res += check (((struct ia64_fdesc *) os_boot_rendez)->gp);
30
  return res;
31
}

powered by: WebSVN 2.1.0

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