From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id 1D7E23858402; Tue, 14 Sep 2021 17:04:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D7E23858402 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Michael Meissner To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/meissner/heads/work068)] Limit XXSPLTIDP for integer constants to 0x80000000. X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/work068 X-Git-Oldrev: 42436f325a1131a443da9ba83c882320c7116cd1 X-Git-Newrev: 6284a86c207cba2f5b819cdecc8ad2bf63f10e5c Message-Id: <20210914170435.1D7E23858402@sourceware.org> Date: Tue, 14 Sep 2021 17:04:35 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2021 17:04:35 -0000 https://gcc.gnu.org/g:6284a86c207cba2f5b819cdecc8ad2bf63f10e5c commit 6284a86c207cba2f5b819cdecc8ad2bf63f10e5c Author: Michael Meissner Date: Tue Sep 14 13:04:14 2021 -0400 Limit XXSPLTIDP for integer constants to 0x80000000. 2021-09-14 Michael Meissner gcc/ * config/rs6000/predicates.md (easy_fp_constant_float_to_v2df): Limit XXSPLTIDP for integer constants to 0x80000000. Diff: --- gcc/config/rs6000/predicates.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md index 635a08ec8d6..edd64eab1e6 100644 --- a/gcc/config/rs6000/predicates.md +++ b/gcc/config/rs6000/predicates.md @@ -666,10 +666,16 @@ HOST_WIDE_INT df_value = INTVAL (element); long df_words[2]; +#if 0 /* Stay away from NaNs and denormal values. */ int exponent = (df_value >> 52) & 0x7ff; if (exponent == 0 || exponent == 0x7ff) return false; +#else + /* For now, only handle -0.0. */ + if (df_value != 0x80000000) + return false; +#endif df_words[0] = (df_value >> 32) & 0xffffffff; df_words[1] = df_value & 0xffffffff;