* RiscV32: properly read references with record offsets and base register

+ RiscV32: sanity check in assembler writer

git-svn-id: trunk@48892 -
This commit is contained in:
florian 2021-03-06 22:19:00 +00:00
parent f620f61d3b
commit 6f3fccddd1
2 changed files with 7 additions and 2 deletions

View File

@ -130,7 +130,9 @@ unit agrvgas;
s:=s+gas_regname(base)+','+gas_regname(index)
else
internalerror(2006052502);
end;
end
else
Internalerror(2021030602);
case refaddr of
addr_lo12: s:='%lo'+s;

View File

@ -533,7 +533,10 @@ Unit rarv32gas;
end;
{ Do we have a indexing reference, then parse it also }
if actasmtoken=AS_LPAREN then
BuildReference(oper);
begin
oper.InitRef;
BuildReference(oper);
end;
end;
AS_REGISTER: { Register, a variable reference or a constant reference }