From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261765AbVFPHK2 (ORCPT ); Thu, 16 Jun 2005 03:10:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261767AbVFPHK2 (ORCPT ); Thu, 16 Jun 2005 03:10:28 -0400 Received: from aun.it.uu.se ([130.238.12.36]:57761 "EHLO aun.it.uu.se") by vger.kernel.org with ESMTP id S261765AbVFPHKX (ORCPT ); Thu, 16 Jun 2005 03:10:23 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17073.9681.911274.644554@alkaid.it.uu.se> Date: Thu, 16 Jun 2005 09:10:09 +0200 From: Mikael Pettersson To: Bodo Eggert <7eggert@gmx.de> Cc: "Maciej W. Rozycki" , "Richard B. Johnson" , Gene Heskett , cutaway@bellsouth.net, linux-kernel@vger.kernel.org Subject: Re: .../asm-i386/bitops.h performance improvements In-Reply-To: References: <4fB8l-73q-9@gated-at.bofh.it> <4fF2j-1Lo-19@gated-at.bofh.it> X-Mailer: VM 7.17 under Emacs 20.7.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Bodo Eggert writes: > My documentation says: > > lea reg16, mem > Available on 8086, 80186, 80286, 80386, 80486 > 32-bit-extension available > Opcode: 8D mod reg r/m > > reg will be the target register (AX .. DI), and mod and r/m will select > something like a direct address, a register or a combination like > BP+DI+ofs (I won't copy the table). A multiplier is not mentioned there. You're looking at the wrong parts of the documentation. The 16-bit mode ModR/M doesn't have SIB, but the 32-bit mode does. The SIB includes the scaled index. All IA32 processors have it. The only LEA-related quirk is that its ModR/M must not describe a non-memory operand.