From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 345623858D33; Tue, 31 Jan 2023 12:19:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 345623858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675167581; bh=zeuo0UyhbBIxTqqquGG3VrQnqwLUTVdX51KKoPWmgmA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MqaPDZmDexZ+xoi+Z4Cj6829trUInDHSv+G4plLNRvCOlAgzu/7czyMFX7jdsO/8+ Dyi3xeyvh7syba6EZrQGyaVOo6rEeeNCQV+bnHE6zqilGTAkHQudAV22DpEgK2PVH1 4jbDhqtlBTuDaDD7YBSMBJP2w/s23JuqiHs+p+ao= From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108583] [13 Regression] wrong code with vector division by uint16 at -O2 Date: Tue, 31 Jan 2023 12:19:40 +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: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: tnfchris 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=3D108583 --- Comment #14 from rguenther at suse dot de --- On Tue, 31 Jan 2023, tnfchris at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108583 >=20 > --- Comment #12 from Tamar Christina --- > (In reply to rguenther@suse.de from comment #11) ... > > As said, recognizing the special case and open-coding the full divison > > in the vectorizer (or possibly even from RTL expansion) would be > > another option here. >=20 > open-coding in the vectorizer will require 4 new IFNs and 4 new optabs as= it > requires 4 different instructions. 2 for neon, 2 for SVE, which are > semantically different as permutes work different across SVE and NEON. S= o if > you're happy with that I will do that. You probably did so elsewhere some time ago, but what exactly are those four instructions? (pointers to specifications appreciated)=