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/] [compile/] [20070501-1.c] - Blame information for rev 315

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

Line No. Rev Author Line
1 297 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.