Fellows,

I am just trying to find a prefferable solution for a compare codes (32 bit 
vars) - test against zero.
So, analyzing IAR's output, I see, that EQ tests preformed as follows:

mov &var, r12
and &var+2, r12
jeq Label

whereas GCC does:

tst &var+2      ; will be issued if necessary, likely not...
jne +4
tst &var
jeq .Label

Which one  _you_ think is better? 

~d


-- 
/********************************************************************
     ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
      `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys 
      (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
    _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
   (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
 ********************************************************************/


Reply via email to