From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWeLw-0005ct-Dh for qemu-devel@nongnu.org; Tue, 01 Sep 2015 01:43:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWeLr-0000mU-EP for qemu-devel@nongnu.org; Tue, 01 Sep 2015 01:43:28 -0400 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:33400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWeLr-0000mQ-7r for qemu-devel@nongnu.org; Tue, 01 Sep 2015 01:43:23 -0400 Received: by paczk9 with SMTP id zk9so16363293pac.0 for ; Mon, 31 Aug 2015 22:43:19 -0700 (PDT) Sender: Richard Henderson References: <1440433079-14458-1-git-send-email-rth@twiddle.net> <1440433079-14458-28-git-send-email-rth@twiddle.net> From: Richard Henderson Message-ID: <55E53AF5.9010705@twiddle.net> Date: Mon, 31 Aug 2015 22:43:17 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v14 27/33] target-tilegx: Handle mask instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: "walt@tilera.com" , Chris Metcalf , QEMU Developers , Chen Gang On 08/30/2015 06:52 AM, Peter Maydell wrote: > I *think* this code is correct, but the ISA manual perplexes me > entirely. Why on earth would you describe anything as "compute > the boolean AND of something with a value of all ones", when that's > just a no-op? I can't see what I'm missing that means they > didn't just describe 'mz' as "dest = srcA ? srcB : 0". Clearly someone who decided that was the best way to implement a conditional move in hardware. The language just propagated back to the manual. r~