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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [941031-1.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
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.