(movsi): Can copy a TOC address into a register.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 26 Oct 1993 22:58:16 +0000 (18:58 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 26 Oct 1993 22:58:16 +0000 (18:58 -0400)
From-SVN: r5902

gcc/config/rs6000/rs6000.md

index e6caa7b..4e53982 100644 (file)
   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))