From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D53C63858D39; Mon, 27 Feb 2023 11:11:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D53C63858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677496276; bh=GlHvAIvDJ1rS0s6mPkuv6vMtqGEnvY6x1d0vVKBOT8I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=A56wtCTVmGRayAe433nGndyMAbQsGuPqgQuJn9mCrOHrH/8ug7GoC5FAnn6qNCRpa GdRRikxBwZBl515N+lWZ7G1fTLDl/1xZrjuwxi3W2nAYI8k2eAPmyUi16gnidWIUv3 xDcPfcLNq+cwdFdaK0MW8GtsuaacayKuhaEa9h8c= From: "jbeulich at suse dot com" 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:11:16 +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: jbeulich at suse 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=3D108941 --- Comment #9 from jbeulich at suse dot com --- (In reply to Jakub Jelinek from comment #1) > How does that look like a gcc bug? It is either a binutils bug for not > accepting it anymore, or ffmpeg-4 bug for relying on the negative shifts. While I'm not sure in how far reduction from original code has discarded too much context, the impression I'm getting is that they use inline assembly because if the same way expressed in a similar way in C, the compiler would warn. And then, rather than making the expression match C standard requirements, assembly code was used instead to silence that diagnostic.=