+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.
get_condition (rtx insn)
{
rtx pat = PATTERN (insn);
- rtx cond;
+ rtx src;
if (pat == 0)
return 0;
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)