From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C434238582A8; Tue, 9 Jan 2024 08:42:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C434238582A8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704789725; bh=mZAMG/JB2bCLJQs5fZxu2w9+X0hiKCyB90cGP5oO/4I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Bos3AzZyzNHfEIgMpt6vtspMk95SCQw8qdKSEEyv30AkKGCcpEZMzHWRMbqgxBW1X ok4TLvLa9Xw47+hrl3zD+I9vhsrdKg7wyszJsd2hFV51xhVZsRJfg/GRUNAwhyDKW/ vHdx+vZyJlRbuN5QGvXMp2x9LWNydBsrQ3tatOZI= From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/113280] Strange error for empty inline assembly with +X constraint Date: Tue, 09 Jan 2024 08:42:02 +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: 14.0 X-Bugzilla-Keywords: diagnostic, inline-asm, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW 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=3D113280 --- Comment #4 from Segher Boessenkool --- Nothing has changed here. opt =3D=3D 2 and opt =3D=3D 3 should use "=3DX", not "+X", btw. combine is perfectly correct that "X" allows *any operand whatsoever*, also those that you cannot really use as an output. Maybe we should not allow "X" for output operands at all? The error happens during reloading btw. Which makes sense, I would be much more surprised if the compiler figured out a way to move data into an addition := -)=