Browse Source

+ RiscV: handle ror(i)(w) in the assembler optimizer

florian 4 months ago
parent
commit
0785652b55
1 changed files with 4 additions and 0 deletions
  1. 4 0
      compiler/riscv/aoptcpurv.pas

+ 4 - 0
compiler/riscv/aoptcpurv.pas

@@ -917,11 +917,15 @@ implementation
               A_SRLW,
               A_SRLW,
               A_SRAW,
               A_SRAW,
               A_ROLW,
               A_ROLW,
+              A_RORW,
+              A_RORIW,
 {$endif riscv64}
 {$endif riscv64}
               A_SLL,
               A_SLL,
               A_SRL,
               A_SRL,
               A_SRA,
               A_SRA,
               A_ROL,
               A_ROL,
+              A_ROR,
+              A_RORI,
               A_NEG,
               A_NEG,
               A_NOT:
               A_NOT:
                 result:=OptPass1OP(p);
                 result:=OptPass1OP(p);