Commit 77d2a36d by Stephane Carrez Committed by Stephane Carrez

m68hc11.c (m68hc11_check_z_replacement): Fix when comparing with Z register.

	* config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
	comparing with Z register.

From-SVN: r78779
parent f2dca510
2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
* config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
comparing with Z register.
2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* cfgloop.h (struct loop_desc): Removed.
......
......@@ -4169,8 +4169,10 @@ m68hc11_check_z_replacement (rtx insn, struct replace_info *info)
{
if ((GET_CODE (src) == REG && REGNO (src) == HARD_Z_REGNUM)
|| (GET_CODE (src) == COMPARE &&
(rtx_equal_p (XEXP (src, 0), z_reg)
|| rtx_equal_p (XEXP (src, 1), z_reg))))
((rtx_equal_p (XEXP (src, 0), z_reg)
&& H_REG_P (XEXP (src, 1)))
|| (rtx_equal_p (XEXP (src, 1), z_reg)
&& H_REG_P (XEXP (src, 0))))))
{
if (insn == info->first)
{
......
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