From: Richard Kenner Date: Mon, 18 Dec 1995 12:49:21 +0000 (-0500) Subject: (fixup_var_refs_1): Fix error in last change (when mode of VAR is not X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d273bf509646a511051229f4c8d2478585dec55;p=gcc.git (fixup_var_refs_1): Fix error in last change (when mode of VAR is not the same as PROMOTED_MODE). From-SVN: r10795 --- diff --git a/gcc/function.c b/gcc/function.c index a1699dc74d9..b62a284f66d 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1979,6 +1979,7 @@ fixup_var_refs_1 (var, promoted_mode, loc, insn, replacements) && (GET_CODE (SET_DEST (x)) == REG || (GET_CODE (SET_DEST (x)) == SUBREG && GET_CODE (SUBREG_REG (SET_DEST (x))) == REG)) + && GET_MODE (var) == promoted_mode && x == single_set (insn)) { rtx pat; @@ -2024,6 +2025,7 @@ fixup_var_refs_1 (var, promoted_mode, loc, insn, replacements) && (GET_CODE (SET_SRC (x)) == REG || (GET_CODE (SET_SRC (x)) == SUBREG && GET_CODE (SUBREG_REG (SET_SRC (x))) == REG)) + && GET_MODE (var) == promoted_mode && x == single_set (insn)) { rtx pat;