From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9A299385842C; Wed, 14 Jun 2023 09:30:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A299385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686735054; bh=ARFvbkfOlgaiDlYmhXJ9RVJ8lwBSyidQgmQ7Y2O69E4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qvEUoGH49sdibIMQ2JW/SHel/5gdDrqmxqEgm2UQQHvA2b/CdYCHu3ym2zTD3Hj0m LQSXc9AWPd4NiHR0lSKLpoacEj8BJ04CVfvHe2Feo8lT43s+6PIq/K1llJDuTThXt6 XH5OMx5a+4IxWlY5QyIxr5uFyLCqPoMbBXtajguo= From: "klepikov.alex+bugs at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54089] [SH] Refactor shift patterns Date: Wed, 14 Jun 2023 09:30:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: klepikov.alex+bugs at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: olegendo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54089 --- Comment #73 from Alexander Klepikov --- I had to check everything a few more times because I found a bug in my patch that caused the long shifts to expand incorrectly. I added a test that chec= ks correct shifts expansion in this regard. I also managed to make a test that verifies hoisting. It can be done with 'scan-assembler' command and regexp. If you're interested, there's more powerful command 'check-function-bodies', but it looks like it works only when C++ cross compiler is built, so I deci= ded to leave the regexp.=