From: Richard Kenner Date: Tue, 26 Oct 1993 22:58:16 +0000 (-0400) Subject: (movsi): Can copy a TOC address into a register. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78b8d850dccf9aa558ccf43e0d022819edac9092;p=platform%2Fupstream%2Fgcc.git (movsi): Can copy a TOC address into a register. From-SVN: r5902 --- diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index e6caa7b..4e53982 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -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))