Commit bf4219f0 by Jeff Law

Another goof in last change.

From-SVN: r16165
parent 27f65411
...@@ -1051,11 +1051,15 @@ legitimize_address (x, oldx, mode) ...@@ -1051,11 +1051,15 @@ legitimize_address (x, oldx, mode)
if (GET_CODE (y) == CONST) if (GET_CODE (y) == CONST)
y = XEXP (y, 0); y = XEXP (y, 0);
regx1 = force_reg (Pmode, force_operand (XEXP (x, 0), 0)); if (GET_CODE (y) == PLUS || GET_CODE (y) == MINUS)
regy1 = force_reg (Pmode, force_operand (XEXP (y, 0), 0)); {
regy2 = force_reg (Pmode, force_operand (XEXP (y, 1), 0)); regx1 = force_reg (Pmode, force_operand (XEXP (x, 0), 0));
regx1 = force_reg (Pmode, gen_rtx (GET_CODE (y), Pmode, regx1, regy2)); regy1 = force_reg (Pmode, force_operand (XEXP (y, 0), 0));
return force_reg (Pmode, gen_rtx (PLUS, Pmode, regx1, regy1)); regy2 = force_reg (Pmode, force_operand (XEXP (y, 1), 0));
regx1 = force_reg (Pmode,
gen_rtx (GET_CODE (y), Pmode, regx1, regy2));
return force_reg (Pmode, gen_rtx (PLUS, Pmode, regx1, regy1));
}
} }
return x; 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