From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2180A38515C5; Thu, 20 Oct 2022 09:08:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2180A38515C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666256889; bh=cavjpBxbGiKXRUgRpIJc2CXYDDJP+XVw0DDV8mJD22g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LEbpioBI8gU0LMcg/UTAWCHR3i5kkyONWXNqhthJpCYOEC0msI/oZKr4YfAKix4Ej 01BI7bEU7TSEUXh+ld1GCheO4/9j0Ozh/xqgfHtaM4H5w3SKeWjnftlNmt6TUVB+tD pHg3cqDsu7MY40uoWM9rINt9jMleMYH95tBOsAAo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/107240] [13 Regression] FAIL: gcc.dg/vect/vect-bitfield-write-2.c since r13-3219-g25413fdb2ac249 Date: Thu, 20 Oct 2022 09:08:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D107240 --- Comment #9 from CVS Commits --- The master branch has been updated by Kewen Lin : https://gcc.gnu.org/g:5d6e834ecf212e7fc6f585b154af224d2e38c749 commit r13-3396-g5d6e834ecf212e7fc6f585b154af224d2e38c749 Author: Kewen Lin Date: Thu Oct 20 04:07:05 2022 -0500 vect: Simplify first for shifted value generation [PR107240] As PR107240 shows, when both the value to be shifted and the count used for shifting are constants, it can be simplified to one constant value, and doesn't actually require to check if the current target supports vector shift operations or not. This patch uses a canonical way proposed by Richi to generate the shifted value, if it can be simplified, the shift operation would be gone, otherwise it's the same as before. It can help to fix the failures of vect-bitfield-write-{2,3}.c on Power. PR tree-optimization/107240 2022-10-20 Richard Biener gcc/ChangeLog: * tree-vect-patterns.cc (vect_recog_bit_insert_pattern): Attemp= t to simplify shifted value first.=