From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-h1p-028592.sys.comcast.net (resqmta-h1p-028592.sys.comcast.net [IPv6:2001:558:fd02:2446::5]) by sourceware.org (Postfix) with ESMTPS id 8318F3857BA4 for ; Fri, 17 Jun 2022 16:52:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8318F3857BA4 Received: from resomta-h1p-027909.sys.comcast.net ([96.102.179.198]) by resqmta-h1p-028592.sys.comcast.net with ESMTP id 2BjgoeHUCfeGE2FChoDSBV; Fri, 17 Jun 2022 16:52:15 +0000 Received: from smtpclient.apple ([73.60.223.101]) by resomta-h1p-027909.sys.comcast.net with ESMTPSA id 2FCco9a66cyW12FCfo0le4; Fri, 17 Jun 2022 16:52:14 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvfedruddvhedguddtfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtvdenucfhrhhomheprfgruhhlucfmohhnihhnghcuoehprghulhhkohhnihhnghestghomhgtrghsthdrnhgvtheqnecuggftrfgrthhtvghrnhepveekveelffeliefgiedufeehgeejtdfhgedujeehueekiedtgfetffevgffggfdvnecukfhppeejfedriedtrddvvdefrddutddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepshhmthhptghlihgvnhhtrdgrphhplhgvpdhinhgvthepjeefrdeitddrvddvfedruddtuddpmhgrihhlfhhrohhmpehprghulhhkohhnihhnghestghomhgtrghsthdrnhgvthdpnhgspghrtghpthhtohepvddprhgtphhtthhopehstghhfigrsgeslhhinhhugidqmheikehkrdhorhhgpdhrtghpthhtohepghgttgesghgttgdrghhnuhdrohhrgh X-Xfinity-VMeta: sc=-100.00;st=legit Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Signed vs. unsigned compares From: Paul Koning In-Reply-To: <8735g3s2yw.fsf@igel.home> Date: Fri, 17 Jun 2022 12:52:10 -0400 Cc: GCC Development Content-Transfer-Encoding: quoted-printable Message-Id: References: <8735g3s2yw.fsf@igel.home> To: Andreas Schwab X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, JMQ_SPF_NEUTRAL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2022 16:52:18 -0000 > On Jun 17, 2022, at 11:51 AM, Andreas Schwab = wrote: >=20 > On Jun 17 2022, Paul Koning via Gcc wrote: >=20 >> In expanding a longer-than-word compare, I need to do things = differently depending on whether a signed vs. unsigned compare is = needed. But it seems the compare operation applies to either. How can = I do this in the target code? >=20 > There are both signed and unsigned comparison operations, eg. GE > vs. GEU. >=20 > --=20 > Andreas Schwab, schwab@linux-m68k.org It looks like what I need is to define additional CCmodes, to describe = "cc mode valid for unsigned comparison" vs. "cc mode valid for signed = comparison". Right now I don't make that distinction and that = reportedly can produce bad code errors. paul