From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-c1p-023463.sys.comcast.net (resqmta-c1p-023463.sys.comcast.net [IPv6:2001:558:fd00:56::4]) by sourceware.org (Postfix) with ESMTPS id 13EF33858D3C for ; Thu, 27 Apr 2023 01:02:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 13EF33858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=comcast.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=comcast.net Received: from resomta-c1p-023412.sys.comcast.net ([96.102.18.229]) by resqmta-c1p-023463.sys.comcast.net with ESMTP id rprEpuzkyZwoFrq1ppGnGQ; Thu, 27 Apr 2023 01:02:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1682557353; bh=4voMl/QDe6nopX10PPqTdRVkkaz/gOkAsHfhNo6FUyk=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To:Xfinity-Spam-Result; b=lSwKPtPqu9EdzSAwbfcQOO5nFlfUw0Hye9yODkXNQiXgxG/j9Y+ZB/weYbwLIIDf0 9yRXctjeizQnX183ym6UEHuHwvPMT8UG4cFQA179d2uGTMjdo8XMcujH7zSOOQZi2D I+gcUlAanRF0JyDlfhDu+ih7hFzxJLVcGR4cGXO5BfNtJ5jSf3QIneMyl8sUCw5Sfj g9wuUlcVdcsEYhcXjDWJvH4Dd+AnGNcTszLmc1mh52ljZ6fZ9GUJ6bUcVSJKKiFNLu 5HEriYm1QsWzx1sYm6G7WN5wswrxHoFFL9xLIX1o7x1pwudtscnHhpGh4mALlYr8P+ uLDUm7EXNGneA== Received: from smtpclient.apple ([73.60.223.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by resomta-c1p-023412.sys.comcast.net with ESMTPSA id rq1npWVYB9sc7rq1opOtkB; Thu, 27 Apr 2023 01:02:33 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvhedrfeduhedggeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurheptggguffhjgffvefgkfhfvffosehtqhhmtdhhtddvnecuhfhrohhmpefrrghulhcumfhonhhinhhguceophgruhhlkhhonhhinhhgsegtohhmtggrshhtrdhnvghtqeenucggtffrrghtthgvrhhnpeevkeevleffleeigfeiudefheegjedthfegudejheeukeeitdfgteffvefggffgvdenucfkphepjeefrdeitddrvddvfedruddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehsmhhtphgtlhhivghnthdrrghpphhlvgdpihhnvghtpeejfedriedtrddvvdefrddutddupdhmrghilhhfrhhomhepphgruhhlkhhonhhinhhgsegtohhmtggrshhtrdhnvghtpdhnsggprhgtphhtthhopeefpdhrtghpthhtohephhhpsegrgihishdrtghomhdprhgtphhtthhopehgtggtqdhprghttghhvghssehgtggtrdhgnhhurdhorhhgpdhrtghpthhtohepnhhitghktgesrhgvughhrghtrdgtohhm X-Xfinity-VMeta: sc=-100.00;st=legit Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Subject: Re: [committed] libgcc CRIS: Define TARGET_HAS_NO_HW_DIVIDE From: Paul Koning In-Reply-To: <20230427000528.C64CA20420@pchp3.se.axis.com> Date: Wed, 26 Apr 2023 21:02:31 -0400 Cc: gcc-patches@gcc.gnu.org, nickc@redhat.com Content-Transfer-Encoding: quoted-printable Message-Id: <0DB5FEAF-7942-4DB6-9817-1DEBBB01D39C@comcast.net> References: <20230427000528.C64CA20420@pchp3.se.axis.com> To: Hans-Peter Nilsson X-Mailer: Apple Mail (2.3696.120.41.1.3) X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > On Apr 26, 2023, at 8:05 PM, Hans-Peter Nilsson wrote: >=20 > Not many targets define this besides msp430, pdp1, xtensa, > and arm compared to those that appear to unconditionally > have a hardware division instruction (also, pdp11 and > msp430 seem confused and should be empty instead of "1" ... How so, "confused"? The documentation says it should be defined, it = doesn't say that it should be defined as empty. What goes wrong if it's = defined as 1 rather than empty? The documentation is also somewhat misleading, because it says to define = it if the hardware has no divide instruction. The more accurate = statement is that it should be defined if the hardware has no 64 / 32 = bit divide hardware support. pdp11.h points this out in a comment, = because most pdp11s do have divide instructions but those are for 32 / = 16 bits. paul=