diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-23 11:57:26 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-23 11:57:26 +0000 |
commit | 9003096f2dafa5559169d2710c442a11adf1d548 (patch) | |
tree | 938b03d17693071f99e1f6805da19f1fec4a9b28 /libgcc | |
parent | 2f3c83ba4884a8de9709dbc2408395fd3c1ba762 (diff) | |
download | gcc-9003096f2dafa5559169d2710c442a11adf1d548.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229236 138bc75d-0d04-0410-961f-82ee72b054a4
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 d63a1716367..8ba7879c0a1 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 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; |