https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64182

--- Comment #9 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 
---
Author: rsandifo
Date: Fri Dec 12 15:46:57 2014
New Revision: 218678

URL: https://gcc.gnu.org/viewcvs?rev=218678&root=gcc&view=rev
Log:
gcc/
    PR middle-end/64182
    * wide-int.h (wi::div_round, wi::mod_round): Fix rounding of tied
    cases.
    * double-int.c (div_and_round_double): Fix handling of unsigned
    cases.  Use same rounding approach as wide-int.h.

gcc/testsuite/
2014-xx-xx  Richard Sandiford  <richard.sandif...@arm.com>
        Joseph Myers  <jos...@codesourcery.com>

    PR middle-end/64182
    * gcc.dg/plugin/wide-int-test-1.c,
    gcc.dg/plugin/wide-int_plugin.c: New test.
    * gcc.dg/plugin/plugin.exp: Register it.
    * gnat.dg/round_div.adb: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/plugin/wide-int-test-1.c
    trunk/gcc/testsuite/gcc.dg/plugin/wide-int_plugin.c
    trunk/gcc/testsuite/gnat.dg/round_div.adb
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/double-int.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/plugin/plugin.exp
    trunk/gcc/wide-int.h

Reply via email to