From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=50387 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdBlT-00080k-RH for qemu-devel@nongnu.org; Wed, 12 Jan 2011 20:14:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdBlS-000470-JN for qemu-devel@nongnu.org; Wed, 12 Jan 2011 20:14:11 -0500 Received: from mail-ww0-f53.google.com ([74.125.82.53]:40461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdBlS-000464-FK for qemu-devel@nongnu.org; Wed, 12 Jan 2011 20:14:10 -0500 Received: by wwi18 with SMTP id 18so1170844wwi.10 for ; Wed, 12 Jan 2011 17:14:08 -0800 (PST) MIME-Version: 1.0 From: Mike Frysinger Date: Wed, 12 Jan 2011 20:13:45 -0500 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] tcg shift ops and magnitudes larger than register size List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org are there any rules with the tcg sar/shl/shr ops and their magnitudes ? such as "magnitudes cannot be larger than the register size" ? i have a 32bit register with the value of 0x1230002 and when i attempt to do a sari with a value >=32, it gives me 0x918001 (a single shift right has been done). i would have expected the value to be 0 (as that is what my architecture does). -mike