From: Joern Rennecke Date: Fri, 23 Oct 2015 11:57:26 +0000 (+0000) Subject: re PR libgcc/66883 (config/epiphany/udivsi3-float.c:52: bad if test ?) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e5bb7eeceab11d8c3167ee03c179660c48a83dc;p=gcc.git 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 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index d63a1716367..8ba7879c0a1 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-23 Joern Rennecke + + PR libgcc/66883 + * config/epiphany/udivsi3-float.c: Fix CONCISE test, and comment typo. + 2015-10-16 Kaushik Phatak * config/rl78/divmodqi.S: Return 0x00 by default for div by 0. diff --git a/libgcc/config/epiphany/udivsi3-float.c b/libgcc/config/epiphany/udivsi3-float.c index 524fbce1861..784bafc169a 100644 --- a/libgcc/config/epiphany/udivsi3-float.c +++ b/libgcc/config/epiphany/udivsi3-float.c @@ -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;