(ia32) for example,
test $eax, $eax
why would you ever want to do that? it does $eax & $eax
, right? shouldn't this always set the flag register to say that they are equal..?
addendum: so test will set the ZF (as mentioned below) if the register is zero. so is test (as used above) mainly just used to tell if a register is empty? and ZF is set if so?