Browse Source

+ Risc-V: apply OptPass1OP to more operations

florian 1 year ago
parent
commit
23dec631f5
1 changed files with 16 additions and 0 deletions
  1. 16 0
      compiler/riscv/aoptcpurv.pas

+ 16 - 0
compiler/riscv/aoptcpurv.pas

@@ -520,12 +520,28 @@ implementation
                       result:=true;
                       result:=true;
                     end;
                     end;
                 end;
                 end;
+              A_LB,
+              A_LBU,
+              A_LH,
+              A_LHU,
+              A_LW,
+{$ifdef riscv64}
+              A_LWU,
+              A_LD,
+{$endif riscv64}
               A_ADD,
               A_ADD,
               A_DIV,
               A_DIV,
               A_DIVU,
               A_DIVU,
 {$ifdef riscv64}
 {$ifdef riscv64}
               A_DIVW,
               A_DIVW,
+              A_DIVUW,
 {$endif riscv64}
 {$endif riscv64}
+              A_REM,
+              A_REMU,
+              {$ifdef riscv64}
+              A_REMW,
+              A_REMUW,
+              {$endif riscv64}
               A_MUL,
               A_MUL,
               A_MULH,
               A_MULH,
               A_MULHSU,
               A_MULHSU,