mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 14:09:20 +02:00
* estimate complexity of ordconst node better on RiscV
This commit is contained in:
parent
00d5351b55
commit
dd26c1502c
@ -927,6 +927,10 @@ implementation
|
|||||||
if not(is_shifter_const(aint(tordconstnode(p).value.svalue),dummy)) then
|
if not(is_shifter_const(aint(tordconstnode(p).value.svalue),dummy)) then
|
||||||
result:=2;
|
result:=2;
|
||||||
{$endif ARM}
|
{$endif ARM}
|
||||||
|
{$ifdef RISCV}
|
||||||
|
if not(is_imm12(aint(tordconstnode(p).value.svalue))) then
|
||||||
|
result:=2;
|
||||||
|
{$endif RISCV}
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
exitn:
|
exitn:
|
||||||
|
Loading…
Reference in New Issue
Block a user