From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B00283858D1E; Tue, 27 Jun 2023 00:03:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B00283858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687824181; bh=LtAgAt0sfsY2nMlLD+4UfVDoiGRaTCJaVHLSibDNbUA=; h=From:To:Subject:Date:From; b=lihJVr0HDUNWNvz3gD/OcykJqHFF3EmCFEa7l4/qx8fRsacBXbI9GNTmYOS0ha5j5 IajawMSyUaaRSrUSOkBfbWMGa1RuqSGzPTcemQ9PYpCx4k9obJ8JfS0SpKr0lrupDT /hFnDsRPXRaq2mUqsaECdC9mjKYCiRYZZU7AO2pc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110422] New: asm goto vs SRA Date: Tue, 27 Jun 2023 00:02:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.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 keywords 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=3D110422 Bug ID: 110422 Summary: asm goto vs SRA Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Testcase from originally from PR 103979: ``` struct S { char a[64]; }; int foo (void) { struct S s, t; asm goto ("" : "=3Dg" (s) : : : l); t =3D s; asm goto ("" : "=3Dg" (s) : : : l); return s.a[0] + t.a[63]; l: return -1; } ``` This is not related to asm goto not being volatile but rather SRA (just like complex lowering, PR 105165) does not know how to handle `asm goto` with outputs.=