From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id 85ED538582BC; Thu, 12 Oct 2023 04:29:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85ED538582BC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697084997; bh=pPmEblTx3Z/ucKqFu7Az8c0ZD3iEbXaZK0soJIw5fo4=; h=From:To:Subject:Date:From; b=q6mcnA4IHeLyAht/0Hih98Xy8Qzvi8YccrzxaJchRq6I1D7pK0DCVO5gIXJoikZ02 3WyHHQdg4Fca0jr82J1oeyj+Uv4KzLteeWK3fYV8KpPvU280a1Z0NGJScz1Z7tuACk Er3vEXLlumCgyxkBTk8T5g63rDmen/WdQnIdSybc= 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/work139)] Revert patches X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/work139 X-Git-Oldrev: de64b2ea8482fdeb55fc7e94162332ed2981fbc9 X-Git-Newrev: ab63444d033067ee72baab1f1af16a4224eac5b2 Message-Id: <20231012042957.85ED538582BC@sourceware.org> Date: Thu, 12 Oct 2023 04:29:57 +0000 (GMT) List-Id: https://gcc.gnu.org/g:ab63444d033067ee72baab1f1af16a4224eac5b2 commit ab63444d033067ee72baab1f1af16a4224eac5b2 Author: Michael Meissner Date: Thu Oct 12 00:29:49 2023 -0400 Revert patches Diff: --- gcc/config/rs6000/rs6000.cc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc index b03913fe71b..2828f01413c 100644 --- a/gcc/config/rs6000/rs6000.cc +++ b/gcc/config/rs6000/rs6000.cc @@ -10370,17 +10370,6 @@ can_be_built_by_li_lis_and_rldicl (HOST_WIDE_INT c, int *shift, /* Leading zeros may be cleaned by rldicl with a mask. Change leading zeros to ones and then recheck it. */ int lz = clz_hwi (c); - - /* Different machines interpret num << shift differently if shift is at least - the number of bits in num's representation. It is explicitly undefined - behavior in the C/C++ langauges. - - In particular (-1 << 64) on an x86_64 produces -1 and (-1 << 64) on a - 64-bit PowerPC produces 0. This difference causes a cross compiler on - x86_64 to recurse until it runs out of stack. */ - if (!lz) - return false; - HOST_WIDE_INT unmask_c = c | (HOST_WIDE_INT_M1U << (HOST_BITS_PER_WIDE_INT - lz)); int n;