OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.target/] [m68k/] [20090709-1.c] - Diff between revs 320 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 320 Rev 384
/* { dg-do compile } */
/* { dg-do compile } */
/* There should be 3 occurrences of .LC0 in the code:
/* There should be 3 occurrences of .LC0 in the code:
   one for the definition of "0",
   one for the definition of "0",
   one for use in test1() and
   one for use in test1() and
   one for use in test2().
   one for use in test2().
   FIXME: At the moment m68k GCC does not optimize test1() to nop
   FIXME: At the moment m68k GCC does not optimize test1() to nop
   for some reason.  */
   for some reason.  */
/* { dg-final { scan-assembler-times ".LC0" 3 } } */
/* { dg-final { scan-assembler-times ".LC0" 3 } } */
 
 
void dummy(char *arg);
void dummy(char *arg);
 
 
void test1(void)
void test1(void)
{
{
  char tmp[2] = "0";
  char tmp[2] = "0";
}
}
 
 
void test2(void)
void test2(void)
{
{
  dummy("0");
  dummy("0");
}
}
 
 

powered by: WebSVN 2.1.0

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