From 78b8d850dccf9aa558ccf43e0d022819edac9092 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 26 Oct 1993 18:58:16 -0400 Subject: [PATCH] (movsi): Can copy a TOC address into a register. From-SVN: r5902 --- gcc/config/rs6000/rs6000.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.7.4