From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id BA4033858D1E for ; Mon, 9 Jan 2023 14:23:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BA4033858D1E Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=comcast.net Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=comcast.net Received: from resqmta-c1p-024061.sys.comcast.net ([2001:558:fd00:56::6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEt41-0007Zh-I2 for gcc@gnu.org; Mon, 09 Jan 2023 09:23:51 -0500 Received: from resomta-c1p-023268.sys.comcast.net ([96.102.18.235]) by resqmta-c1p-024061.sys.comcast.net with ESMTP id ErbHpVOeNiH5UEt3kpYRXw; Mon, 09 Jan 2023 14:23:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1673274212; bh=W83LIZetO73KC99HMQgcNDXV6ctdVVch179LNSDCCB8=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To:Xfinity-Spam-Result; b=ma/itnNULf4PjwVZXRCoIikxxmSX01eLM5Pkqm7gfNCEk67oDK9jfONZhJxtCXkyl 8bHUjmdriPx44+TcYg6NDWqJaYci9CaRFG/jAdYeVtFEDvUjDqwl0oEJ2KS0VUNi5N ZJilkdaP6mqc+QleYau7Vlw16f7WbeHSSIvf/zpdA42Lqb3ukbwjLncteBH7B2wyCY gcAKbfZqB2gNNVeMc10aa5sb23jCR9qRwq9hX9ZfKFRRrWfVa+FXzFfPZ+jsKY6V4l mKOUgOwKkSbIrftF/5cjXwegwEMlcTMjKYsz7MA5Z0h/T46HPPGzUm5fQYdVlY+F/i 9drg5i9EED+mw== Received: from smtpclient.apple ([73.60.223.101]) by resomta-c1p-023268.sys.comcast.net with ESMTPSA id Et3gp2PxOjpAmEt3hpyxng; Mon, 09 Jan 2023 14:23:31 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvhedrkeeigdehlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpegtggfuhffrjgffvefgkfhfvffosehtqhhmtdhhtddvnecuhfhrohhmpefrrghulhcumfhonhhinhhguceophgruhhlkhhonhhinhhgsegtohhmtggrshhtrdhnvghtqeenucggtffrrghtthgvrhhnpefgudeiudekudeufeeiffegvedtgfdtffelvedvgefhvdduhfduhfekieduleetfeenucfkphepjeefrdeitddrvddvfedruddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehsmhhtphgtlhhivghnthdrrghpphhlvgdpihhnvghtpeejfedriedtrddvvdefrddutddupdhmrghilhhfrhhomhepphgruhhlkhhonhhinhhgsegtohhmtggrshhtrdhnvghtpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepshhtvghfrghnrdhkrghnthhhrghksehnvgigghhordguvgdprhgtphhtthhopehgtggtsehgnhhurdhorhhg 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.1\)) Subject: Re: Widening multiplication, but no narrowing division [i386/AMD64] From: Paul Koning X-Priority: 3 In-Reply-To: <554A1354252F43BB8915A74129C41BE3@H270> Date: Mon, 9 Jan 2023 09:23:28 -0500 Cc: gcc@gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <554A1354252F43BB8915A74129C41BE3@H270> To: Stefan Kanthak X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2001:558:fd00:56::6; envelope-from=paulkoning@comcast.net; helo=resqmta-c1p-024061.sys.comcast.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,DKIM_VALID_EF=-0.1,FREEMAIL_FROM=0.001,SPF_HELO_PASS=-0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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_SOFTFAIL,TXREP autolearn=no 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 Jan 9, 2023, at 7:20 AM, Stefan Kanthak = wrote: >=20 > Hi, >=20 > GCC (and other C compilers too) support the widening multiplication > of i386/AMD64 processors, but DON'T support their narrowing division: I wonder if this changed in the recent past. I have a pattern for this = type of thing in pdp11.md: (define_expand "divmodhi4" [(parallel [(set (subreg:HI (match_dup 1) 0) (div:HI (match_operand:SI 1 "register_operand" "0") (match_operand:HI 2 "general_operand" "g"))) (set (subreg:HI (match_dup 1) 2) (mod:HI (match_dup 1) (match_dup 2)))]) (set (match_operand:HI 0 "register_operand" "=3Dr") (subreg:HI (match_dup 1) 0)) (set (match_operand:HI 3 "register_operand" "=3Dr") (subreg:HI (match_dup 1) 2))] "TARGET_40_PLUS" "") and I'm pretty sure this worked at some point in the past. =20 paul