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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20070501-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 signed int signed16 __attribute__ ((__mode__ (__HI__)));
2
 typedef unsigned int unsigned16 __attribute__ ((__mode__ (__HI__)));
3
 typedef signed16 HI;
4
 typedef unsigned16 UHI;
5
unsigned short f(int y)
6
{
7
  HI tmp_b4;
8
  tmp_b4 = y;
9
  UHI opval;
10
  if (tmp_b4 == -32768)
11
    opval = 32767;
12
  else
13
   opval = -tmp_b4;
14
 return opval;
15
}
16
 

powered by: WebSVN 2.1.0

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