diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2015-10-23 11:57:26 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2015-10-23 12:57:26 +0100 |
commit | 3e5bb7eeceab11d8c3167ee03c179660c48a83dc (patch) | |
tree | 938b03d17693071f99e1f6805da19f1fec4a9b28 /libgcc | |
parent | ed4403c692f88eaef7bdf36bacd5ae9e423b9f5c (diff) | |
download | gcc-3e5bb7eeceab11d8c3167ee03c179660c48a83dc.zip gcc-3e5bb7eeceab11d8c3167ee03c179660c48a83dc.tar.gz gcc-3e5bb7eeceab11d8c3167ee03c179660c48a83dc.tar.bz2 |
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
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/config/epiphany/udivsi3-float.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index d63a171..8ba7879 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -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. diff --git a/libgcc/config/epiphany/udivsi3-float.c b/libgcc/config/epiphany/udivsi3-float.c index 524fbce..784bafc 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; |