gcc/
commit3ccf08bc5682eb45d60d84e0274017947027f179
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Dec 2014 15:46:57 +0000 (12 15:46 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Dec 2014 15:46:57 +0000 (12 15:46 +0000)
treeb4ad83f4876c83d62f4f1ff43d1f923c4cd90840
parent146d81545912f621237df1947d60f2cd8ca0993c
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.sandiford@arm.com>
    Joseph Myers  <joseph@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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218678 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/double-int.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/plugin/plugin.exp
gcc/testsuite/gcc.dg/plugin/wide-int-test-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/plugin/wide-int_plugin.c [new file with mode: 0644]
gcc/testsuite/gnat.dg/round_div.adb [new file with mode: 0644]
gcc/wide-int.h