From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EE149385841D; Wed, 12 Apr 2023 11:03:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE149385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681297393; bh=DoovN0OxwhxFeGEHxSCZHbDg3kaHdO4ZWNYn28WHo0w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QbTgYK88k5djot9S+QJLg2XZI9YmQSJd2gMJiFi+EYlUPkqIjHpCwU+sAsGBUEqtG UvLJC8khA8rylcOFW8Vqr4kCHA5yJpcBrJgM+zlzW9aBwYersm+QvQWOWI58i8AH2l NEXxdzn/EshyIqVkePB03uxlCzjXTSo6UCjpWvFs= From: "570070308 at qq dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109484] [Wrong Code][inline-asm] output operands overlap with output Date: Wed, 12 Apr 2023 11:03:13 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: 570070308 at qq 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: 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=3D109484 --- Comment #2 from =E3=80=82 <570070308 at qq dot com> --- (In reply to Richard Biener from comment #1) > but you clobber 'temp' early and fail to indicate that so GCC allocates t= he > same register as part of the "+m" output. The requirements you describe are not reflected in the documentation. The document only says that `GCC assumpts that the assembler code consumes its inputs before producing outputs`, and this code fits the assumption. First,= it reads the input from %1, then write the output to %0, then write the output= to %1. No outputs happend before inputs.=