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.dg/] [const-elim-2.c] - Diff between revs 298 and 384

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

Rev 298 Rev 384
/* The string constant in this test case should be emitted exactly once.  */
/* The string constant in this test case should be emitted exactly once.  */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-times "hi there" 1 } } */
/* { dg-final { scan-assembler-times "hi there" 1 } } */
 
 
static inline int returns_23() { return 23; }
static inline int returns_23() { return 23; }
 
 
const char *test1(void) { if (returns_23()) return 0; return "hi there"; }
const char *test1(void) { if (returns_23()) return 0; return "hi there"; }
const char *test2(void) { return "hi there"; }
const char *test2(void) { return "hi there"; }
const char *test3(void) { return "hi there"; }
const char *test3(void) { return "hi there"; }
 
 

powered by: WebSVN 2.1.0

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