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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [941031-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
typedef long mpt;
2
 
3
int
4
f (mpt us, mpt vs)
5
{
6
  long aus;
7
  long avs;
8
 
9
  aus = us >= 0 ? us : -us;
10
  avs = vs >= 0 ? vs : -vs;
11
 
12
  if (aus < avs)
13
    {
14
      long t = aus;
15
      aus = avs;
16
      avs = aus;
17
    }
18
 
19
  return avs;
20
}
21
 
22
main ()
23
{
24
  if (f ((mpt) 3, (mpt) 17) != 17)
25
    abort ();
26
  exit (0);
27
}

powered by: WebSVN 2.1.0

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