From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:50098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQ37J-0001Fj-W3 for qemu-devel@nongnu.org; Fri, 27 May 2011 15:54:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQ37I-0006I3-QE for qemu-devel@nongnu.org; Fri, 27 May 2011 15:54:41 -0400 Received: from mail-yw0-f45.google.com ([209.85.213.45]:50579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQ37I-0006Hz-MU for qemu-devel@nongnu.org; Fri, 27 May 2011 15:54:40 -0400 Received: by ywl41 with SMTP id 41so1067989ywl.4 for ; Fri, 27 May 2011 12:54:40 -0700 (PDT) Sender: Richard Henderson Message-ID: <4DE0017D.4090607@twiddle.net> Date: Fri, 27 May 2011 12:54:37 -0700 From: Richard Henderson MIME-Version: 1.0 References: <97bbf40c055a9949f5fbf185764792679fb8273a.1305889001.git.batuzovk@ispras.ru> <4DD6B4E9.3040501@twiddle.net> <4DDE5C28.4030507@twiddle.net> <4DDEB39F.80609@twiddle.net> <4DDEC29D.6020204@twiddle.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/6] Do constant folding for shift operations. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: mj.mccormack@samsung.com, qemu-devel@nongnu.org, zhur@ispras.ru, Kirill Batuzov On 05/27/2011 10:07 AM, Blue Swirl wrote: >> The C99 hook exists to efficiently support targets that don't have >> arithmetic shift operations. Honestly. > > So it would be impossible for a compiler developer to change the logic > for shifts for some supported two's-complement logic CPUs (like x86) > just because it's legal? Not without being lynched, no. r~