mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-27 23:04:46 +08:00
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:
parent
cc23546e32
commit
200097cc9a
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user