Commit 78b8d850 by Richard Kenner

(movsi): Can copy a TOC address into a register.

From-SVN: r5902
parent 8d91dd28
......@@ -2699,7 +2699,8 @@
if (GET_CODE (operands[0]) != REG)
operands[1] = force_reg (SImode, operands[1]);
if (CONSTANT_P (operands[1]) && GET_CODE (operands[1]) != CONST_INT)
if (CONSTANT_P (operands[1]) && GET_CODE (operands[1]) != CONST_INT
&& ! LEGITIMATE_CONSTANT_POOL_ADDRESS_P (operands[1]))
{
operands[1] = force_const_mem (SImode, operands[1]);
if (! memory_address_p (SImode, XEXP (operands[1], 0))
......
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