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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [991202-3.c] - Blame information for rev 297

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

Line No. Rev Author Line
1 297 jeremybenn
 
2
unsigned int f (unsigned int a)
3
{
4
  return a * 65536 / 8;
5
}
6
 
7
unsigned int g (unsigned int a)
8
{
9
  return a * 65536;
10
}
11
 
12
unsigned int h (unsigned int a)
13
{
14
  return a / 8;
15
}
16
 
17
int main ()
18
{
19
  if (f (65536) != h (g (65536)))
20
    abort ();
21
  exit (0);
22
}

powered by: WebSVN 2.1.0

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