From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 418653858C39; Fri, 14 Oct 2022 09:06:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 418653858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665738361; bh=zygT5kr/jFjybdifZZTpX+IJ+fImkSej4UdkPXEriyU=; h=From:To:Subject:Date:From; b=C88EAbxDBId8V/Jp+O/OvdFxO6NevrvwGkekPBIB+K/1ddSSj016XEWA5KVQhDg2W GbrbI7GaMGTBAtH+nz37WEWFyJ5d4+b9eHxjZNlEncmLI/3GobaZWuaCVTAuMGvwpV xUonBOJx7c+hvTKuwUqqFCIl7GJbFRax5I8k87oA= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107259] New: Vectorize VxHF _Float16 modes using partial vectors without -mavx512vl Date: Fri, 14 Oct 2022 09:06:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D107259 Bug ID: 107259 Summary: Vectorize VxHF _Float16 modes using partial vectors without -mavx512vl Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: ubizjak at gmail dot com Target Milestone: --- The following testcase: --cut here-- #define N 16 _Float16 r[N], a[N], b[N]; void foo (void) { for (int i =3D 0; i < N; i++) r[i] =3D a[i] + b[i]; } --cut here-- can be vectorized with -O2 -mavx512fp16 -mavx512vl, but not when -mavx512vl= is omitted. However, the test can still be vectorized using partial vectors. The testcase should be vectorized for all N < 32, even without -mavx512vl.=