mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-30 21:20:53 +02:00
* OP_DIV shouldn't be used directly, not all cpu CGs support it
git-svn-id: trunk@1533 -
This commit is contained in:
parent
ed1df49879
commit
d43f2fb2d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user