Commit 64791b18 by Richard Kenner

(convert_modes): Reset OLDMODE from X after we strip a SUBREG due to a

promoted variable.

From-SVN: r5752
parent 58133067
......@@ -1183,9 +1183,6 @@ convert_modes (mode, oldmode, x, unsignedp)
{
register rtx temp;
if (GET_MODE (x) != VOIDmode)
oldmode = GET_MODE (x);
/* If FROM is a SUBREG that indicates that we have already done at least
the required extension, strip it. */
......@@ -1194,6 +1191,9 @@ convert_modes (mode, oldmode, x, unsignedp)
&& SUBREG_PROMOTED_UNSIGNED_P (x) == unsignedp)
x = gen_lowpart (mode, x);
if (GET_MODE (x) != VOIDmode)
oldmode = GET_MODE (x);
if (mode == oldmode)
return x;
......
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