From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1081138582B6; Tue, 23 Jan 2024 08:51:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1081138582B6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705999880; bh=o+HY/4T4Z6BwCPQjQBPnvOkbHeeVVbLcS0w7qQVad1g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CAEH/gwQdt7HeMahqc6ecqzFIQTd7mVvDyPshNv4Dl4coSC6glC8VY8zUGpIjPs78 M7s020sSadCj7FKAzJEWD7WAcpjQuagbxqYwn3zaxiG8ksQo7XbkEJ0Qyg+k70PPER eAYBGJ1uMeD6xN3NE6LMbKk18hMRPn/jfQ7ZYQkE= From: "nsz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113552] [11/12/13/14 Regression] vectorizer generates calls to vector math routines with 1 simd lane. Date: Tue, 23 Jan 2024 08:51:13 +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: 14.0 X-Bugzilla-Keywords: link-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: nsz at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D113552 nsz at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nsz at gcc dot gnu.org --- Comment #2 from nsz at gcc dot gnu.org --- is this fortran only? glibc release is in a week, we can still do something (or backport a fix). the vector abi does not allow 1 lane in this case https://github.com/ARM-software/abi-aa/blob/main/vfabia64/vfabia64.rst#L867 c annotation: https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dsysdeps/aarch64/fpu/= bits/math-vector.h;h=3D04837bdcd7c0d0ce91192e09fc2d6614cae289c2;hb=3DHEAD fortran annotation: https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dsysdeps/aarch64/fpu/= finclude/math-vector-fortran.h;h=3D92e15f0d6a758258f5728e628bbb2422b176fa95= ;hb=3DHEAD i think the bug can be reproduced with older glibc by adding !GCC$ builtin (cos) attributes simd (notinbranch)=