m68hc11.c (m68hc11_check_z_replacement): Fix handling 68HC12 pre/post inc/dec side effects.

* config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
	68HC12 pre/post inc/dec side effects.

From-SVN: r61410
This commit is contained in:
Stephane Carrez 2003-01-16 23:12:39 +01:00 committed by Stephane Carrez
parent cc23546e32
commit 200097cc9a
2 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
* config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
68HC12 pre/post inc/dec side effects.
2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
* config/m68hc11/m68hc11.h (MASK_M6812): Define.

View File

@ -4341,7 +4341,13 @@ m68hc11_check_z_replacement (insn, info)
info->z_died = 1;
info->need_save_z = 0;
}
else
else if (TARGET_M6812 && side_effects_p (src))
{
info->last = 0;
info->must_restore_reg = 0;
return 0;
}
else
{
info->save_before_last = 1;
}
@ -4418,7 +4424,13 @@ m68hc11_check_z_replacement (insn, info)
info->z_died = 1;
info->need_save_z = 0;
}
else
else if (TARGET_M6812 && side_effects_p (src))
{
info->last = 0;
info->must_restore_reg = 0;
return 0;
}
else
{
info->save_before_last = 1;
}