diff --git a/compiler/ncginl.pas b/compiler/ncginl.pas index 5e8c7e402b..d4a161f3a3 100644 --- a/compiler/ncginl.pas +++ b/compiler/ncginl.pas @@ -994,12 +994,9 @@ implementation procedure tcginlinenode.second_BsfBsr; var - not_zero, reverse: boolean; opsize: tcgsize; begin - reverse:=(inlinenumber = in_bsr_x); - not_zero:=node_not_zero(left); secondpass(left); opsize:=tcgsize2unsigned[left.location.size]; @@ -1008,7 +1005,7 @@ implementation location_reset(location,LOC_REGISTER,def_cgsize(resultdef)); location.register:=cg.getintregister(current_asmdata.CurrAsmList,location.size); - cg.a_bit_scan_reg_reg(current_asmdata.CurrAsmList,reverse,not_zero,opsize,location.size,left.location.register,location.register); + cg.a_bit_scan_reg_reg(current_asmdata.CurrAsmList,inlinenumber=in_bsr_x,node_not_zero(left),opsize,location.size,left.location.register,location.register); end;