On 8/11/23 08:06, Richard Henderson wrote:
Basically, test sets SZ flags, where cmp sets SZCO.  I want to add an optimizaton using C, so "cmp 0,x" should not be silently replaced by "test x,x".

This patch can be dropped entirely.

TEST clears C (which cmp vs 0 would also do). I was mis-remembering INC/DEC which leave C unchanged and thus uninitialized wrt the current operation.


r~


Reply via email to