Commit 5fbf1204 by Jason Merrill Committed by Jason Merrill

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
parent ab1d746d
2015-07-03 Jason Merrill <jason@redhat.com>
* gcc.dg/plugin/wide-int_plugin.c (test_double_int_round_udiv):
Avoid narrowing error.
2015-07-03 Segher Boessenkool <segher@kernel.crashing.org>
PR rtl-optimization/66706
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment