* reorg.c (get_branch_condition): Use reversed_comparison_code.

From-SVN: r52090
This commit is contained in:
Richard Henderson 2002-04-09 12:45:20 -07:00 committed by Richard Henderson
parent e8766a3973
commit 3429579991
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-04-08 Richard Henderson <rth@redhat.com>
* reorg.c (get_branch_condition): Use reversed_comparison_code.
2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* config/m68hc11/larith.asm (__map_data_section): Fix condition

View File

@ -1086,9 +1086,14 @@ get_branch_condition (insn, target)
|| (GET_CODE (XEXP (src, 2)) == LABEL_REF
&& XEXP (XEXP (src, 2), 0) == target))
&& XEXP (src, 1) == pc_rtx)
return gen_rtx_fmt_ee (reverse_condition (GET_CODE (XEXP (src, 0))),
GET_MODE (XEXP (src, 0)),
XEXP (XEXP (src, 0), 0), XEXP (XEXP (src, 0), 1));
{
enum rtx_code rev;
rev = reversed_comparison_code (XEXP (src, 0), insn);
if (rev != UNKNOWN)
return gen_rtx_fmt_ee (rev, GET_MODE (XEXP (src, 0)),
XEXP (XEXP (src, 0), 0),
XEXP (XEXP (src, 0), 1));
}
return 0;
}