To: Geert Uytterhoeven Cc: David Edelsohn , Kaoru Fukui , Jean-Jacques.Levy@inria.fr, Benjamin Herrenschmidt , linuxppc-dev@lists.linuxppc.org Subject: Re: __divdi3 unresolved + X pointer blocks References: From: Holger Bettag Date: 05 Jul 2001 13:48:41 +0200 In-Reply-To: Geert Uytterhoeven's message of Thu, 5 Jul 2001 10:13:16 +0200 (CEST) Message-ID: <8xr8vv61gm.fsf@s62.informatik.uni-bremen.de> Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: Geert Uytterhoeven writes: > > > On Wed, 4 Jul 2001, David Edelsohn wrote: > > You do not seem to have understood my reply. I will repeat the > > important sentence: > > > > SHIFT IS NOT THE SAME AS DIVIDE FOR SIGNED INTEGERS. > > Indeed. That's why you have `logical shift right' and > `arithmetic shift right'. > The former inserts zeroes, the latter inserts a copy of the MSB. > > Don't know from memory whether PPC has them... > Yes, PowerPC has both; but some forms don't have their own opcodes, as they are emulated with bitfield instructions. And: 'arithmetic shift right' is _not_ the same as signed divide, because the rounding of negative operands or results may differ. Holger ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/