m68k/cgcpu.pas, tcg68k.a_load_const_ref:

* don't do a sign_extend, but use the correct move size to copy the const; this fixes the setting of the line ending style inside of "Assign"

=> output of strings does now work correctly!

git-svn-id: trunk@22890 -
This commit is contained in:
svenbarth 2012-10-31 20:26:29 +00:00
parent 17ff90deb9
commit a3a3cad8ee

View File

@ -672,8 +672,7 @@ unit cgcpu;
begin
hreg:=getintregister(list,tosize);
list.concat(taicpu.op_const_reg(A_MOVE,tcgsize2opsize[tosize],longint(a),hreg));
sign_extend(list,tosize,hreg);
list.concat(taicpu.op_reg_ref(A_MOVE,S_L,hreg,href));
list.concat(taicpu.op_reg_ref(A_MOVE,tcgsize2opsize[tosize],hreg,href));
end
else
list.concat(taicpu.op_const_ref(A_MOVE,tcgsize2opsize[tosize],longint(a),href));