diff options
author | Jeff Law <law@redhat.com> | 2019-04-15 15:19:21 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2019-04-15 15:19:21 -0600 |
commit | afe9b7c5e6e30e0d6a3187c4885e1f45f5943926 (patch) | |
tree | 5ecc9f84e0367a9ecf0e3cc2588eab3cb7ba063d /gcc/config/microblaze | |
parent | 7262646b3b02fd23eeeef75b9694bbcfbf43ef81 (diff) | |
download | gcc-afe9b7c5e6e30e0d6a3187c4885e1f45f5943926.zip gcc-afe9b7c5e6e30e0d6a3187c4885e1f45f5943926.tar.gz gcc-afe9b7c5e6e30e0d6a3187c4885e1f45f5943926.tar.bz2 |
microblaze.c (microblaze_expand_block_move): Treat size and alignment as unsigned.
* config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
size and alignment as unsigned.
From-SVN: r270373
Diffstat (limited to 'gcc/config/microblaze')
-rw-r--r-- | gcc/config/microblaze/microblaze.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c index 70910fd..55c1bec 100644 --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c @@ -1258,8 +1258,8 @@ microblaze_expand_block_move (rtx dest, rtx src, rtx length, rtx align_rtx) 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) { @@ -1267,7 +1267,7 @@ microblaze_expand_block_move (rtx dest, rtx src, rtx length, rtx align_rtx) } 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; @@ -1276,14 +1276,14 @@ microblaze_expand_block_move (rtx dest, rtx src, rtx length, rtx align_rtx) 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; } } |