* sched-deps.c (get_condition): Fix breakage in previous patch.

From-SVN: r86748
This commit is contained in:
Richard Earnshaw 2004-08-30 01:28:22 +00:00 committed by Richard Earnshaw
parent 999f4d5e46
commit adf968c7ec
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2004-08-30 Richard Earnshaw <rearnsha@arm.com>
* sched-deps.c (get_condition): Fix breakage in previous patch.
2004-08-30 Paul Brook <paul@codesourcery.com>
* doc/install.texi: Fix broken mpfr link.

View File

@ -141,7 +141,7 @@ static rtx
get_condition (rtx insn)
{
rtx pat = PATTERN (insn);
rtx cond;
rtx src;
if (pat == 0)
return 0;
@ -152,11 +152,12 @@ get_condition (rtx insn)
if (!any_condjump_p (insn) || !onlyjump_p (insn))
return 0;
cond = XEXP (SET_SRC (pc_set (insn)), 0);
if (XEXP (cond, 2) == pc_rtx)
return cond;
else if (XEXP (cond, 1) == pc_rtx)
src = SET_SRC (pc_set (insn));
if (XEXP (src, 2) == pc_rtx)
return XEXP (src, 0);
else if (XEXP (src, 1) == pc_rtx)
{
rtx cond = XEXP (src, 0);
enum rtx_code revcode = reversed_comparison_code (cond, insn);
if (revcode == UNKNOWN)