From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D6B4D3858D35; Mon, 27 Feb 2023 11:14:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D6B4D3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677496491; bh=p5alr9BhjL1qXhAPdfinkp1SPQx9P9RJLifzm4Mq1Tg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=u0Q3G/7skaUV5pkSVWYAcBMDpe2wY/qNqnOYxp151vb3BUmiYFqO3unuH4kH3wm/X YpCpueTzH6qL5ZfTUYoGsh4vGfmbFydnLTDfD5iUSfOSCHhHEyrRhr0PqjPCsdIrdE jkm4cAo/SFxo+aLaGXEWTgYzEdhL0ShcLnNP4u8k= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108941] Error: operand type mismatch for `shr' with binutils master Date: Mon, 27 Feb 2023 11:14:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: resolution bug_status 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=3D108941 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #10 from Jakub Jelinek --- https://gcc.gnu.org/onlinedocs/gccint/Constants.html#Constants if you want to see it in GCC documentation. "Constants generated for modes with fewer bits than in HOST_WIDE_INT must be sign extended to full width (e.g., with gen_int_mode)." and, in asm_operands the operand mode is only present as GET_MODE on the operand, if it is constant, it has VOIDmode mode and the original mode is lost. Anyway, it is pointless to discuss this further, there is really nothing th= at can be done on the GCC side.=