On 11/03/2016 12:03 PM, Laurent Vivier wrote:
CC_OP_CMPW for cas2w.It was working because I have used helper_be_ldsw_mmu() to load values, is it better to use helper_be_lduw_mmu with CC_OP_CMPW?
IIRC, one needs the extra sign-extension here: case CC_OP_CMPB: \ case CC_OP_CMPW: \ case CC_OP_CMPL: \ src1 = n; \ src2 = v; \ res = EXTSIGN(src1 - src2, op - CC_OP_CMPB); \ to get all of the flags correct, even though just Z would be correct without. r~