Browse Source

* more use of OptPass1OP

florian 8 months ago
parent
commit
89b1cdefbe
1 changed files with 4 additions and 2 deletions
  1. 4 2
      compiler/riscv/aoptcpurv.pas

+ 4 - 2
compiler/riscv/aoptcpurv.pas

@@ -624,6 +624,7 @@ implementation
               A_ADD,
 {$ifdef riscv64}
               A_ADDIW,
+              A_SUBW,
 {$endif riscv64}
               A_DIV,
               A_DIVU,
@@ -633,10 +634,11 @@ implementation
 {$endif riscv64}
               A_REM,
               A_REMU,
-              {$ifdef riscv64}
+{$ifdef riscv64}
               A_REMW,
               A_REMUW,
-              {$endif riscv64}
+              A_MULW,
+{$endif riscv64}
               A_MUL,
               A_MULH,
               A_MULHSU,