|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH v14 27/33] target-tilegx: Handle mask instructions |
Date: | Mon, 31 Aug 2015 22:43:17 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
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~
[Prev in Thread] | Current Thread | [Next in Thread] |