Commit 3fad4d00 by DJ Delorie Committed by DJ Delorie

rx.c (rx_option_override): Fix alignment values.

* config/rx/rx.c (rx_option_override): Fix alignment values.
(rx_align_for_label): Likewise.

From-SVN: r212710
parent e832590c
2014-07-16 DJ Delorie <dj@redhat.com>
* config/rx/rx.c (rx_option_override): Fix alignment values.
(rx_align_for_label): Likewise.
2014-07-17 Hans-Peter Nilsson <hp@axis.com>
PR target/61737.
......
......@@ -2787,12 +2787,13 @@ rx_option_override (void)
rx_override_options_after_change ();
/* These values are bytes, not log. */
if (align_jumps == 0 && ! optimize_size)
align_jumps = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 2 : 3);
align_jumps = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 4 : 8);
if (align_loops == 0 && ! optimize_size)
align_loops = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 2 : 3);
align_loops = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 4 : 8);
if (align_labels == 0 && ! optimize_size)
align_labels = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 2 : 3);
align_labels = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 4 : 8);
}
......@@ -3199,9 +3200,10 @@ rx_align_for_label (rtx lab, int uses_threshold)
if (optimize_size)
return 0;
/* These values are log, not bytes. */
if (rx_cpu_type == RX100 || rx_cpu_type == RX200)
return 2;
return 2;
return 2; /* 4 bytes */
return 3; /* 8 bytes */
}
static int
......
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