瀏覽代碼

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

florian 6 月之前
父節點
當前提交
0785652b55
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      compiler/riscv/aoptcpurv.pas

+ 4 - 0
compiler/riscv/aoptcpurv.pas

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