mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 04:59:26 +02:00
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:
parent
17ff90deb9
commit
a3a3cad8ee
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user