From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 568B1385842D; Mon, 10 Jan 2022 07:15:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 568B1385842D From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/64821] [AArch64] Improve target folding for vsqrt_f64 intrinsic Date: Mon, 10 Jan 2022 07:15:45 +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: 5.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia 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 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: Mon, 10 Jan 2022 07:15:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64821 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > I am going to fix this but maybe not until stage 1. >=20 > I think this is enough too: It is. A testcase too: /* { dg-do compile } */ /* { dg-options "-fdump-tree-optimized" } */ #include /* { dg-final { scan-tree-dump-times "__builtin_aarch64" 0 "optimized" } } = */ /* { dg-final { scan-tree-dump-times ".SQRT" 4 "optimized" } } */ float64x1_t f64(float64x1_t a) { return vsqrt_f64 (a); } float64x2_t f64q(float64x2_t a) { return vsqrtq_f64 (a); } float32x2_t f32(float32x2_t a) { return vsqrt_f32 (a); } float32x4_t f32q(float32x4_t a) { return vsqrtq_f32 (a); }=