From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A817A3938C0D; Mon, 28 Jun 2021 05:25:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A817A3938C0D From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/100328] IRA doesn't model matching constraint well Date: Mon, 28 Jun 2021 05:25:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linkw at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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, 28 Jun 2021 05:25:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100328 --- Comment #6 from Kewen Lin --- Created attachment 51066 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D51066&action=3Dedit aarch64 XPASS failure list The patch v3 bootstrapped and regression-tested on x86_64-redhat-linux and powerpc64le-linux-gnu, but still have some "XFAIL -> XPASS" regression fail= ures on aarch64-linux-gnu, I think these remaining failures are expected (assemb= ly gets improved). Need Richard's help to double check/confirm them. For example, for div_f16.c, mad_f32.c and sub_f64.c, the related different assembly looks like below: BEFORE: div_h4_f16_x_untied: mov z4.h, h4 movprfx z0, z1 fdiv z0.h, p0/m, z0.h, z4.h ret mad_s4_f32_x_untied: mov z4.s, s4 movprfx z0, z4 fmla z0.s, p0/m, z1.s, z2.s ret sub_d4_f64_x_untied: mov z4.d, d4 movprfx z0, z1 fsub z0.d, p0/m, z0.d, z4.d ret AFTER: div_h4_f16_x_untied: mov z0.h, h4 fdivr z0.h, p0/m, z0.h, z1.h ret mad_s4_f32_x_untied: mov z0.s, s4 fmla z0.s, p0/m, z1.s, z2.s ret sub_d4_f64_x_untied: mov z0.d, d4 fsubr z0.d, p0/m, z0.d, z1.d ret The assembly with this patch saves movprfx.=