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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* PR optimization/7153 */
2
/* Verify that GCC doesn't promote a register when its
3
   lifetime is not limited to one basic block. */
4
 
5
void f(char);
6
void g(void);
7
 
8
void scale(void)
9
{
10
  int width;
11
  char bytes;
12
  char *src;
13
 
14
  if (width)
15
  {
16
    bytes = *src;
17
    g();
18
    width *= bytes;
19
  }
20
 
21
  f(bytes);
22
}

powered by: WebSVN 2.1.0

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