From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPvRF-0005f8-Ux for qemu-devel@nongnu.org; Tue, 18 Mar 2014 10:56:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPvR7-0003de-C1 for qemu-devel@nongnu.org; Tue, 18 Mar 2014 10:56:21 -0400 Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:46251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPvR7-0003dM-3u for qemu-devel@nongnu.org; Tue, 18 Mar 2014 10:56:13 -0400 Received: by mail-qg0-f49.google.com with SMTP id z60so21373790qgd.8 for ; Tue, 18 Mar 2014 07:56:12 -0700 (PDT) Sender: Richard Henderson Message-ID: <53285E88.3060407@twiddle.net> Date: Tue, 18 Mar 2014 07:56:08 -0700 From: Richard Henderson MIME-Version: 1.0 References: <5328564A.8060409@twiddle.net> <53285A90.6040300@twiddle.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] target-i386: guest variable shift by 0 provokes shift by -1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On 03/18/2014 07:47 AM, Peter Maydell wrote: > The interesting question is not immediate shifts > but variable ones. It's trivially easy for the frontend > to avoid passing out of range immediate values > and for the backend to screen them out. This > case is a variable shift TCG op. Exactly how are you distinguishing between constant and variable shifts? By how they were issued in the first place? By how they are presented to the backend? Otherwise I'm not following you. r~