diff options
author | James Van Artsdalen <jrv@gnu.org> | 1993-01-29 05:48:47 +0000 |
---|---|---|
committer | James Van Artsdalen <jrv@gnu.org> | 1993-01-29 05:48:47 +0000 |
commit | dc78213e1a40e1cc737d01d5b5ea25043b548faf (patch) | |
tree | 6bbb6bc4b04502cf9df3d1e2d2a40596ac2b2844 /gcc/reg-stack.c | |
parent | 9a82d0bb78918f5c62e959dc5696acafb69708c9 (diff) | |
download | gcc-dc78213e1a40e1cc737d01d5b5ea25043b548faf.zip gcc-dc78213e1a40e1cc737d01d5b5ea25043b548faf.tar.gz gcc-dc78213e1a40e1cc737d01d5b5ea25043b548faf.tar.bz2 |
(compare_for_stack_reg): Properly swap operands of a COMPARE.
From-SVN: r3383
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r-- | gcc/reg-stack.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 5277cd2..ee05b46 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -1773,9 +1773,12 @@ compare_for_stack_reg (insn, regstack, pat) { rtx temp, next; - temp = *src1; - *src1 = *src2; - *src2 = temp; + temp = XEXP (SET_SRC (pat), 0); + XEXP (SET_SRC (pat), 0) = XEXP (SET_SRC (pat), 1); + 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); if (next == NULL_RTX) |