* OP_DIV shouldn't be used directly, not all cpu CGs support it

git-svn-id: trunk@1533 -
This commit is contained in:
florian 2005-10-19 14:31:59 +00:00
parent ed1df49879
commit d43f2fb2d4

View File

@ -351,7 +351,7 @@ implementation
hregister:=cg.makeregsize(exprasmlist,left.location.register,OS_INT);
cg.a_load_ref_reg(exprasmlist,OS_INT,OS_INT,href,hregister);
if is_widestring(left.resulttype.def) then
cg.a_op_const_reg(exprasmlist,OP_IDIV,OS_INT,cwidechartype.def.size,hregister);
cg.a_op_const_reg(exprasmlist,OP_SHR,OS_INT,1,hregister);
cg.a_label(exprasmlist,lengthlab);
location_reset(location,LOC_REGISTER,OS_INT);
location.register:=hregister;