Przeglądaj źródła

* MIPS: MULT[U] and DIV[U] don't modify first operand.

git-svn-id: trunk@23623 -
sergei 12 lat temu
rodzic
commit
f0e6d2c054
1 zmienionych plików z 8 dodań i 4 usunięć
  1. 8 4
      compiler/mips/aasmcpu.pas

+ 8 - 4
compiler/mips/aasmcpu.pas

@@ -292,23 +292,27 @@ end;
       A_OR,
       A_OR,
       A_XOR,
       A_XOR,
       A_NOR,
       A_NOR,
+{ We can get into trouble if an instruction can be interpreted as
+  macros with different operands. The following commented out ones
+  refer to elementary instructions: DIV[U], MULT[U] do not modify
+  first operand. Rest are subject to check. }
       A_MUL,
       A_MUL,
       A_MULO,
       A_MULO,
       A_MULOU,
       A_MULOU,
       A_DMUL,
       A_DMUL,
       A_DMULO,
       A_DMULO,
       A_DMULOU,
       A_DMULOU,
-      A_DIV,
-      A_DIVU,
+//      A_DIV,
+//      A_DIVU,
       A_DDIV,
       A_DDIV,
       A_DDIVU,
       A_DDIVU,
       A_REM,
       A_REM,
       A_REMU,
       A_REMU,
       A_DREM,
       A_DREM,
       A_DREMU,
       A_DREMU,
-      A_MULT,
+//      A_MULT,
       A_DMULT,
       A_DMULT,
-      A_MULTU,
+//      A_MULTU,
       A_DMULTU,
       A_DMULTU,
       A_MFHI,
       A_MFHI,
       A_MFLO,
       A_MFLO,