mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-11 03:50:27 +08:00
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:
parent
ed4403c692
commit
3e5bb7eece
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user