Commit 040e0e44 by Jeff Law Committed by Jeff Law

h8300.c (h8300_expand_prologue): Fix stm generation for H8/S.

	* config/h8300/h8300.c (h8300_expand_prologue): Fix stm generation
	for H8/S.

From-SVN: r265444
parent 72eda5f2
2018-10-12 Jeff Law <law@redhat.com>
* config/h8300/h8300.c (h8300_expand_prologue): Fix stm generation
for H8/S.
2018-10-23 Richard Biener <rguenther@suse.de>
* tree-vrp.c (add_assert_info): Guard dump_printf with
......@@ -865,15 +865,15 @@ h8300_expand_prologue (void)
if (TARGET_H8300S)
{
/* See how many registers we can push at the same time. */
if ((!TARGET_H8300SX || (regno & 3) == 0)
if ((TARGET_H8300SX || (regno & 3) == 0)
&& ((saved_regs >> regno) & 0x0f) == 0x0f)
n_regs = 4;
else if ((!TARGET_H8300SX || (regno & 3) == 0)
else if ((TARGET_H8300SX || (regno & 3) == 0)
&& ((saved_regs >> regno) & 0x07) == 0x07)
n_regs = 3;
else if ((!TARGET_H8300SX || (regno & 1) == 0)
else if ((TARGET_H8300SX || (regno & 1) == 0)
&& ((saved_regs >> regno) & 0x03) == 0x03)
n_regs = 2;
}
......
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