Browse Source

* estimate complexity of ordconst node better on RiscV

florian 11 tháng trước cách đây
mục cha
commit
dd26c1502c
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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: