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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr48717.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
/* PR tree-optimization/48717 */
2
 
3
extern void abort (void);
4
 
5
int v = 1, w;
6
 
7
unsigned short
8
foo (unsigned short x, unsigned short y)
9
{
10
  return x + y;
11
}
12
 
13
void
14
bar (void)
15
{
16
  v = foo (~w, w);
17
}
18
 
19
int
20
main ()
21
{
22
  bar ();
23
  if (v != (unsigned short) -1)
24
    abort ();
25
  return 0;
26
}

powered by: WebSVN 2.1.0

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