Bläddra i källkod

m68k: do not generate CLR instructions to memory references on plain 68k. there this instruction also causes reads from the address, which is slow and can have side effects.

git-svn-id: trunk@28422 -
Károly Balogh 11 år sedan
förälder
incheckning
9b0bf91076
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      compiler/m68k/cgcpu.pas

+ 1 - 1
compiler/m68k/cgcpu.pas

@@ -794,7 +794,7 @@ unit cgcpu;
         a:=longint(a);
         href:=ref;
         fixref(list,href);
-        if (a=0) then
+        if (a=0) and not (current_settings.cputype = cpu_mc68000) then
           list.concat(taicpu.op_ref(A_CLR,tcgsize2opsize[tosize],href))
         else if (tcgsize2opsize[tosize]=S_L) and
            (current_settings.cputype in [cpu_isa_b,cpu_isa_c]) and