re PR libgcc/66883 (config/epiphany/udivsi3-float.c:52: bad if test ?)

PR libgcc/66883
        * config/epiphany/udivsi3-float.c: Fix CONCISE test, and comment typo.

N.B., this is not active code, just documenting a previous approach for this
function in C.

From-SVN: r229236
This commit is contained in:
Joern Rennecke 2015-10-23 11:57:26 +00:00 committed by Joern Rennecke
parent ed4403c692
commit 3e5bb7eece
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2015-10-23 Joern Rennecke <joern.rennecke@embecosm.com>
PR libgcc/66883
* config/epiphany/udivsi3-float.c: Fix CONCISE test, and comment typo.
2015-10-16 Kaushik Phatak <kaushik.phatak@kpit.com>
* config/rl78/divmodqi.S: Return 0x00 by default for div by 0.

View File

@ -49,9 +49,9 @@ __udivsi3 (unsigned int a, unsigned int b)
u0.f = (int) a;
u1.f = (int) b;
#ifdef CONCISE
if (a < 0)
if ((int) a < 0)
u0.i = (a >> 8) - 0x00800000 + 0x3f800000 + (31 << 23);
#else /* To use flag seting / cmove, this can be written as: */
#else /* To use flag setting / cmove, this can be written as: */
{
unsigned c = 0xff800000 - 0x4f000000;
t = (int)a >> 8;