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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [near-far-2.c] - Diff between revs 321 and 338

Only display areas with differences | Details | Blame | View Log

Rev 321 Rev 338
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-mno-long-calls addressing=absolute" } */
/* { dg-options "-mno-long-calls addressing=absolute" } */
 
 
extern int long_call_func () __attribute__((long_call));
extern int long_call_func () __attribute__((long_call));
extern int far_func () __attribute__((far));
extern int far_func () __attribute__((far));
extern int near_func () __attribute__((near));
extern int near_func () __attribute__((near));
extern int normal_func ();
extern int normal_func ();
 
 
int test ()
int test ()
{
{
  return (long_call_func ()
  return (long_call_func ()
          + far_func ()
          + far_func ()
          + near_func ()
          + near_func ()
          + normal_func ());
          + normal_func ());
}
}
 
 
/* { dg-final { scan-assembler-not "\tjal\tlong_call_func\n" } } */
/* { dg-final { scan-assembler-not "\tjal\tlong_call_func\n" } } */
/* { dg-final { scan-assembler-not "\tjal\tfar_func\n" } } */
/* { dg-final { scan-assembler-not "\tjal\tfar_func\n" } } */
/* { dg-final { scan-assembler     "\tjal\tnear_func\n" } } */
/* { dg-final { scan-assembler     "\tjal\tnear_func\n" } } */
/* { dg-final { scan-assembler     "\tjal\tnormal_func\n" } } */
/* { dg-final { scan-assembler     "\tjal\tnormal_func\n" } } */
 
 

powered by: WebSVN 2.1.0

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