From: Jason Merrill Date: Fri, 3 Jul 2015 14:42:21 +0000 (-0400) Subject: wide-int_plugin.c (test_double_int_round_udiv): Avoid narrowing error. X-Git-Tag: upstream/12.2.0~53770 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5fbf1204e03f613cdcd518f638ef27b823cf307f;p=platform%2Fupstream%2Fgcc.git wide-int_plugin.c (test_double_int_round_udiv): Avoid narrowing error. * gcc.dg/plugin/wide-int_plugin.c (test_double_int_round_udiv): Avoid narrowing error. From-SVN: r225383 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 493b730..598918e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-03 Jason Merrill + + * gcc.dg/plugin/wide-int_plugin.c (test_double_int_round_udiv): + Avoid narrowing error. + 2015-07-03 Segher Boessenkool PR rtl-optimization/66706 diff --git a/gcc/testsuite/gcc.dg/plugin/wide-int_plugin.c b/gcc/testsuite/gcc.dg/plugin/wide-int_plugin.c index b20ee28..17604c8 100644 --- a/gcc/testsuite/gcc.dg/plugin/wide-int_plugin.c +++ b/gcc/testsuite/gcc.dg/plugin/wide-int_plugin.c @@ -10,8 +10,8 @@ static void test_double_int_round_udiv (void) { double_int dmin = { 0, HOST_WIDE_INT_MIN }; - double_int dmax = { -1, HOST_WIDE_INT_MAX }; - double_int dnegone = { -1, -1 }; + double_int dmax = { (unsigned HOST_WIDE_INT)-1, HOST_WIDE_INT_MAX }; + double_int dnegone = { (unsigned HOST_WIDE_INT)-1, -1 }; double_int mod, div; div = dmin.udivmod (dnegone, ROUND_DIV_EXPR, &mod); if (div.low != 1 || div.high != 0