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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20020206-1.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* Origin: PR optimization/5429 from Philipp Thomas <pthomas@suse.de>.  */
2
/* This testcase caused ICE on IA-32 -O2 -march=i686 due to rtl sharing
3
   problem in noce_process_if_block.  Fixed by
4
   http://gcc.gnu.org/ml/gcc-patches/2002-01/msg02146.html.  */
5
 
6
typedef struct {
7
  unsigned char a;
8
} A;
9
 
10
unsigned int foo (A *x)
11
{
12
  unsigned char b[2] = { 0, 0 };
13
  unsigned char c = 0;
14
 
15
  c = (x->a) ? b[1] : b[0];
16
 
17
  return (unsigned int) c;
18
}

powered by: WebSVN 2.1.0

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