From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9ECF93858D38; Fri, 10 Nov 2023 11:58:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9ECF93858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699617503; bh=g9jzMr3HbPfPAXGZcRHSuLFxM6mX4lkv11Tk3HAn1i0=; h=From:To:Subject:Date:From; b=g628cg3pLM7nabZrFH8Yw7IvwlH0MF6vBEXczcsyn8sySj59MVFyjNJIhX0Gzjc1h ukizAvhXwOutJDSyoLgerMKzN0REsmjBh13TJNtMx6OJ/TqkIHTT8KH5nnUFKH5Y9b n1zVcBpqqTM0sxgRpQ0lJKQtzlVwYSL3suFc0DjE= From: "xen0n at gentoo dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/112476] New: [14 Regression] unrecognizable insn with -O2 -march=la464 on loongarch64 Date: Fri, 10 Nov 2023 11:58:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xen0n at gentoo dot org 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 cf_gcctarget attachments.created 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=3D112476 Bug ID: 112476 Summary: [14 Regression] unrecognizable insn with -O2 -march=3Dla464 on loongarch64 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: xen0n at gentoo dot org Target Milestone: --- Target: loongarch64-linux-gnu Created attachment 56551 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56551&action=3Dedit Minimized reproducer The attached code minified from Skia, ICEs with "unrecognizable insn" when compiled with SIMD apparently active and the backend wanting to do something with it. According to my preliminary debugging: the bug disappears when the extra la= yer of wrapping function is removed, when the two "&a" arguments get changed, a= nd when the memcpy is rewritten to a simple pointer dereference.=