re PR middle-end/31740 (Problem while compiling gcc for mips-elf)

2007-05-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/31740
        * gcc.c-torture/compile/20070501-1.c: New testcase.

From-SVN: r124337
This commit is contained in:
Andrew Pinski 2007-05-01 18:34:32 +00:00 committed by Andrew Pinski
parent 2af6cb38db
commit f81af7bdea
2 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-05-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/31740
* gcc.c-torture/compile/20070501-1.c: New testcase.
2007-05-01 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/31732

View file

@ -0,0 +1,16 @@
typedef signed int signed16 __attribute__ ((__mode__ (__HI__)));
typedef unsigned int unsigned16 __attribute__ ((__mode__ (__HI__)));
typedef signed16 HI;
typedef unsigned16 UHI;
unsigned short f(int y)
{
HI tmp_b4;
tmp_b4 = y;
UHI opval;
if (tmp_b4 == -32768)
opval = 32767;
else
opval = -tmp_b4;
return opval;
}