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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20020206-1.c] - Rev 149

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

/* Origin: PR optimization/5429 from Philipp Thomas <pthomas@suse.de>.  */
/* This testcase caused ICE on IA-32 -O2 -march=i686 due to rtl sharing
   problem in noce_process_if_block.  Fixed by
   http://gcc.gnu.org/ml/gcc-patches/2002-01/msg02146.html.  */
 
typedef struct {
  unsigned char a;
} A;
 
unsigned int foo (A *x)
{
  unsigned char b[2] = { 0, 0 };
  unsigned char c = 0;
 
  c = (x->a) ? b[1] : b[0];
 
  return (unsigned int) c;
}
 

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.