Browse Source

m68k: do not generate copy loops for single byte copies on a plain '000

git-svn-id: trunk@35281 -
Károly Balogh 8 years ago
parent
commit
2e9d0543df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/m68k/cgcpu.pas

+ 1 - 1
compiler/m68k/cgcpu.pas

@@ -1692,7 +1692,7 @@ unit cgcpu;
          srcrefp,dstrefp : treference;
          srcrefp,dstrefp : treference;
          srcref,dstref : treference;
          srcref,dstref : treference;
       begin
       begin
-         if (len in [1,2,4]) and (current_settings.cputype <> cpu_mc68000) then
+         if (len = 1) or ((len in [2,4]) and (current_settings.cputype <> cpu_mc68000)) then
            begin
            begin
              //list.concat(tai_comment.create(strpnew('g_concatcopy: small')));
              //list.concat(tai_comment.create(strpnew('g_concatcopy: small')));
              a_load_ref_ref(list,lentocgsize[len],lentocgsize[len],source,dest);
              a_load_ref_ref(list,lentocgsize[len],lentocgsize[len],source,dest);