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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr47140.c] - Blame information for rev 745

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

Line No. Rev Author Line
1 688 jeremybenn
/* PR tree-optimization/47140 */
2
 
3
static inline int
4
foo (int x, short y)
5
{
6
  return y == 0 ? x : x + y;
7
}
8
 
9
static inline unsigned short
10
bar (unsigned short x, unsigned char y)
11
{
12
  return x - y;
13
}
14
 
15
int w;
16
 
17
int baz (void);
18
 
19
int
20
test (void)
21
{
22
  int i;
23
  for (i = 0; i < 50; i++)
24
    w += foo ((unsigned char) (1 + baz ()) >= bar (0, 1), 0);
25
}

powered by: WebSVN 2.1.0

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