Commit b949f8e2 by Jeff Law

Fix va-arg-22.c at -O1 on m32r.

	PR rtl-optimization/92264
	* config/m32r/m32r.c (m32r_output_block_move): Properly account for
	post-increment addressing of source operands as well as residuals
	when computing any adjustments to the input pointer.
parent a13d6ec8
2020-04-03 Jeff Law <law@redhat.com>
PR rtl-optimization/92264
* config/m32r/m32r.c (m32r_output_block_move): Properly account for
post-increment addressing of source operands as well as residuals
when computing any adjustments to the input pointer.
2020-04-03 Jakub Jelinek <jakub@redhat.com> 2020-04-03 Jakub Jelinek <jakub@redhat.com>
PR target/94460 PR target/94460
......
...@@ -2676,7 +2676,7 @@ m32r_output_block_move (rtx insn ATTRIBUTE_UNUSED, rtx operands[]) ...@@ -2676,7 +2676,7 @@ m32r_output_block_move (rtx insn ATTRIBUTE_UNUSED, rtx operands[])
destination pointer. */ destination pointer. */
int dst_inc_amount = dst_offset + bytes - 4; int dst_inc_amount = dst_offset + bytes - 4;
/* The same for the source pointer. */ /* The same for the source pointer. */
int src_inc_amount = bytes; int src_inc_amount = bytes - (got_extra ? 4 : 0);
int last_shift; int last_shift;
rtx my_operands[3]; rtx my_operands[3];
......
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