浏览代码

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 -

svenbarth 12 年之前
父节点
当前提交
a3a3cad8ee
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      compiler/m68k/cgcpu.pas

+ 1 - 2
compiler/m68k/cgcpu.pas

@@ -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));