Re: xor as a lazy comparison

Grant Coady
2005-07-28T00:04:47Z

On Wed, 27 Jul 2005 15:58:48 -0400, "linux-os \(Dick Johnson\)" <linux-os@analogic.com> wrote:
>
>I think the XOR thread was started by somebody as a ruse or
>a joke. XOR will always destroy the value of an operand.

You missed the part where somebody checked assembler output and
found compiler optimised xor to cmp as nothing referenced the result.

Grant.