* estimate complexity of ordconst node better on RiscV

This commit is contained in:
florian 2024-08-26 21:42:20 +01:00
parent 00d5351b55
commit dd26c1502c

View File

@ -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: