+2019-04-15 Jeff Law <law@redhat.com>
+
+ * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
+ size and alignment as unsigned.
+
2019-04-15 Richard Biener <rguenther@suse.de>
PR debug/90074
if (GET_CODE (length) == CONST_INT)
{
- HOST_WIDE_INT bytes = INTVAL (length);
- int align = INTVAL (align_rtx);
+ unsigned HOST_WIDE_INT bytes = UINTVAL (length);
+ unsigned int align = UINTVAL (align_rtx);
if (align > UNITS_PER_WORD)
{
}
else if (align < UNITS_PER_WORD)
{
- if (INTVAL (length) <= MAX_MOVE_BYTES)
+ if (UINTVAL (length) <= MAX_MOVE_BYTES)
{
move_by_pieces (dest, src, bytes, align, RETURN_BEGIN);
return true;
return false;
}
- if (INTVAL (length) <= 2 * MAX_MOVE_BYTES)
+ if (UINTVAL (length) <= 2 * MAX_MOVE_BYTES)
{
- microblaze_block_move_straight (dest, src, INTVAL (length));
+ microblaze_block_move_straight (dest, src, UINTVAL (length));
return true;
}
else if (optimize)
{
- microblaze_block_move_loop (dest, src, INTVAL (length));
+ microblaze_block_move_loop (dest, src, UINTVAL (length));
return true;
}
}