Commit dc78213e by James Van Artsdalen

(compare_for_stack_reg): Properly swap operands of a COMPARE.

From-SVN: r3383
parent 9a82d0bb
...@@ -1773,9 +1773,12 @@ compare_for_stack_reg (insn, regstack, pat) ...@@ -1773,9 +1773,12 @@ compare_for_stack_reg (insn, regstack, pat)
{ {
rtx temp, next; rtx temp, next;
temp = *src1; temp = XEXP (SET_SRC (pat), 0);
*src1 = *src2; XEXP (SET_SRC (pat), 0) = XEXP (SET_SRC (pat), 1);
*src2 = temp; XEXP (SET_SRC (pat), 1) = temp;
src1 = get_true_reg (&XEXP (SET_SRC (pat), 0));
src2 = get_true_reg (&XEXP (SET_SRC (pat), 1));
next = next_cc0_user (insn); next = next_cc0_user (insn);
if (next == NULL_RTX) if (next == NULL_RTX)
......
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