소스 검색

* RiscV64: optimize 32 bit shift instructions as well

florian 9 달 전
부모
커밋
72daf3f556
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      compiler/riscv/aoptcpurv.pas

+ 10 - 0
compiler/riscv/aoptcpurv.pas

@@ -680,12 +680,22 @@ implementation
               A_AND,
               A_OR,
               A_XOR,
+{$ifdef riscv64}
+              A_SLLW,
+              A_SRLW,
+              A_SRAW,
+{$endif riscv64}
               A_SLL,
               A_SRL,
               A_SRA,
               A_NEG,
               A_NOT:
                 result:=OptPass1OP(p);
+{$ifdef riscv64}
+              A_SRAIW,
+              A_SRLIW,
+              A_SLLIW,
+{$endif riscv64}
               A_SRAI,
               A_SRLI,
               A_SLLI: