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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr31959.c] - Rev 298

Compare with Previous | Blame | View Log

/* PR middle-end/31959 */
/* { dg-do compile } */
/* { dg-options "-O0 -fguess-branch-probability" } */
 
struct A { int i; };
 
static inline struct A *
bar (struct A *x)
{
  return x;
}
 
void *
foo (struct A *x, int y)
{
  void *p = (void *) 0;
  if (__builtin_expect (y >= 6, 0))
    p = bar (x);
  return p;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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