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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [c-c++-common/] [asmgoto-4.c] - Rev 295

Compare with Previous | Blame | View Log

/* PR middle-end/44071 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
 
static inline int
f1 (void)
{
  asm goto ("" : : : : l1, l2);
  __builtin_unreachable ();
 l1:
  return 1;
 l2:
  return 0;
}
 
int
b1 (int x)
{
  if (f1 () || x == 6)
    x = 1;
  else
    x = 2;
  return x;
}
 
static inline int
f2 (void)
{
  asm goto ("" : : : : l1, l2);
 l1:
  return 1;
 l2:
  return 0;
}
 
int
b2 (int x)
{
  if (f2 () || x == 6)
    x = 1;
  else
    x = 2;
  return x;
}
 

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.