소스 검색

* estimate complexity of ordconst node better on RiscV

florian 1 년 전
부모
커밋
dd26c1502c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      compiler/nutils.pas

+ 4 - 0
compiler/nutils.pas

@@ -927,6 +927,10 @@ implementation
                   if not(is_shifter_const(aint(tordconstnode(p).value.svalue),dummy)) then
                     result:=2;
 {$endif ARM}
+{$ifdef RISCV}
+                  if not(is_imm12(aint(tordconstnode(p).value.svalue))) then
+                    result:=2;
+{$endif RISCV}
                   exit;
                 end;
               exitn: