mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 06:49:23 +02:00
* fix RiscV32 compilation
This commit is contained in:
parent
5769d737d1
commit
f356d8cc51
@ -399,6 +399,7 @@ implementation
|
|||||||
|
|
||||||
result:=true;
|
result:=true;
|
||||||
end
|
end
|
||||||
|
{$ifndef RISCV32}
|
||||||
else if MatchInstruction(hp1,A_ADDIW) and
|
else if MatchInstruction(hp1,A_ADDIW) and
|
||||||
(taicpu(hp1).ops=3) and
|
(taicpu(hp1).ops=3) and
|
||||||
MatchOperand(taicpu(p).oper[0]^,taicpu(hp1).oper[1]^) and
|
MatchOperand(taicpu(p).oper[0]^,taicpu(hp1).oper[1]^) and
|
||||||
@ -416,6 +417,7 @@ implementation
|
|||||||
|
|
||||||
result:=true;
|
result:=true;
|
||||||
end
|
end
|
||||||
|
{$endif RISCV32}
|
||||||
else
|
else
|
||||||
result:=OptPass1OP(p);
|
result:=OptPass1OP(p);
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user