Browse Source

* emit a cld instruction before the rep movsXX in tcg8086.g_copyvaluepara_openarray as well

git-svn-id: trunk@25556 -
nickysn 12 years ago
parent
commit
1f783f539c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/i8086/cgcpu.pas

+ 1 - 0
compiler/i8086/cgcpu.pas

@@ -1504,6 +1504,7 @@ unit cgcpu;
             else
               list.concat(Taicpu.op_const_reg(A_IMUL,S_W,len,NR_CX));
           end;
+        list.concat(Taicpu.op_none(A_CLD,S_NO));
         list.concat(Taicpu.op_none(A_REP,S_NO));
         case opsize of
           S_B : list.concat(Taicpu.Op_none(A_MOVSB,S_NO));