From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 948B03860012; Wed, 14 Feb 2024 18:00:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 948B03860012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707933649; bh=KA4xk2xjuSG3TXygGThdVUMBtP1PQ3LkOeNW879vmdI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MrJ7x/N0bEE+qg6BtfUAJB0xtch3K136FETVTAFu3x4WFakf0GQEuYCv4j8Zgfzzw 15mCsNNE9qZs6rvaSYycKrNyuJz+m2IdmtDhymxsor4BHqs+JTnp7vjx0eUoEIJ6TA OWX/uYPqar9kgdHyOSNGd1Az0zvs/fLxFdGqnXuk= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113921] Output register of an "asm volatile goto" is incorrectly clobbered/discarded Date: Wed, 14 Feb 2024 18:00:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.4.0 X-Bugzilla-Keywords: inline-asm X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 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=3D113921 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- Bisection points to r12-5301-g045206450386bcd774db3bde0c696828402361c6 maki= ng the problem go away, 3abc: b8 10 28 00 00 mov $0x2810,%eax 3ac1: 0f 78 c0 vmread %rax,%rax 3ac4: 0f 86 1e 01 00 00 jbe 3be8 3aca: 45 31 e4 xor %r12d,%r12d 3acd: 4c 89 a3 f0 00 00 00 mov %r12,0xf0(%rbx) to 3a4f: b8 10 28 00 00 mov $0x2810,%eax 3a54: 0f 78 c0 vmread %rax,%rax 3a57: 0f 86 1b 01 00 00 jbe 3b78 3a5d: 48 89 83 f0 00 00 00 mov %rax,0xf0(%rbx)=