From: Richard Kenner Date: Fri, 14 Jul 1995 22:46:08 +0000 (-0400) Subject: (movsi): Convert a CONST_DOUBLE into a CONST_INT of the low part. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef0e171b50823bc8d6e4b156ee6d87e732971b8e;p=gcc.git (movsi): Convert a CONST_DOUBLE into a CONST_INT of the low part. From-SVN: r10135 --- diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 549c55d7a55..2899ecba1e2 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -3846,6 +3846,10 @@ if (GET_CODE (operands[0]) != REG) operands[1] = force_reg (SImode, operands[1]); + /* Convert a move of a CONST_DOUBLE into a CONST_INT */ + if (GET_CODE (operands[1]) == CONST_DOUBLE) + operands[1] = GEN_INT (CONST_DOUBLE_LOW (operands[1])); + if (CONSTANT_P (operands[1]) && GET_CODE (operands[1]) != CONST_INT && ! LEGITIMATE_CONSTANT_POOL_ADDRESS_P (operands[1])) {