From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1F0C03877034; Tue, 7 Apr 2020 21:07:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F0C03877034 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586293673; bh=j+N9O/zfPuAqzHXzxIN1FWWbcslexd4E/P9509FSEak=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nbYNzY0PmNgkRqZI46ncjOaXRx/9vn4cRbYtCnNZpuswQSyF3fp4pfOwyxuSyvlGc Wm0RoV4b1USOppd8iETyK2UyRBuguyoZaglRPyhRTdCuzl44G4Zes9A/THKxw/TN8A 0eyPWvkUyc7v38f8Di9KTTd6ejWNUVwoiZkc45sY= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94524] [8/9/10 Regression] wrong code with vector modulo operation since r0-117580 Date: Tue, 07 Apr 2020 21:07:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc cc target_milestone assigned_to bug_status everconfirmed cf_reconfirmed_on 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2020 21:07:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94524 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|wrong code with vector |[8/9/10 Regression] wrong |modulo operation |code with vector modulo | |operation since r0-117580 CC| |jakub at gcc dot gnu.org Target Milestone|--- |8.5 Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gn= u.org Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Last reconfirmed| |2020-04-07 --- Comment #1 from Jakub Jelinek --- Started with my r0-117580-g4ee4c52c64cc1eeda53aae6e221b5b1bd9bd7421 so I believe this should work correctly in 4.7 (and 4.6 didn't accept it). The vect pattern code tried to follow what the expander does, but in that c= ase there is match.pd rule that canonicalizes x % -C into x % C. Will need to = dig up if something in the expansion tweaks the sign of the divisor or if it has the same bug as the vect pattern.=