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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr17581-1.c] - Rev 149

Go to most recent revision | Compare with Previous | Blame | View Log

/* PR rtl-optimization/17581 */
/* { dg-do run } */
/* { dg-options "-O2" } */
 
void abort (void);
 
int foo(int x)
{
  unsigned long long tmp = 0;
 
  switch(x) {
    case 21:
      tmp |= 1;
      tmp |= 2;
      tmp |= 8;
      break;
    default:
      break;
  }
 
  return (int)tmp;
}
 
int main()
{
  if (foo(21) != 11)
    abort ();
  return 0;
}
 
 

Go to most recent revision | 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.