From ef0e171b50823bc8d6e4b156ee6d87e732971b8e Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 14 Jul 1995 18:46:08 -0400 Subject: [PATCH] (movsi): Convert a CONST_DOUBLE into a CONST_INT of the low part. From-SVN: r10135 --- gcc/config/rs6000/rs6000.md | 4 ++++ 1 file changed, 4 insertions(+) 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])) { -- 2.30.2