mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 19:08:15 +02:00
* don't give an internalerror when trying to prefetch a regvar or even
something without a location at all; it's a hint/optional operation, so if there's nothing to prefetch just don't do anything (mantis #27811) git-svn-id: trunk@30502 -
This commit is contained in:
parent
a8db5e3dfb
commit
9079227c56
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -14388,6 +14388,7 @@ tests/webtbs/tw2776.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2778.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2779.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2780.pp svneol=native#text/plain
|
||||
tests/webtbs/tw27811.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2788.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2789.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2794.pp svneol=native#text/plain
|
||||
|
@ -372,7 +372,7 @@ implementation
|
||||
current_asmdata.CurrAsmList.concat(taicpu.op_ref(A_PLD,ref));
|
||||
end;
|
||||
else
|
||||
internalerror(200402021);
|
||||
{ nothing to prefetch };
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
@ -227,7 +227,7 @@ implementation
|
||||
end;
|
||||
end;
|
||||
else
|
||||
internalerror(200402021);
|
||||
{ nothing to prefetch };
|
||||
end;
|
||||
end;
|
||||
|
||||
|
@ -595,7 +595,7 @@ implementation
|
||||
current_asmdata.CurrAsmList.concat(taicpu.op_ref(A_PREFETCHNTA,S_NO,ref));
|
||||
end;
|
||||
else
|
||||
internalerror(200402021);
|
||||
{ nothing to prefetch };
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
13
tests/webtbs/tw27811.pp
Normal file
13
tests/webtbs/tw27811.pp
Normal file
@ -0,0 +1,13 @@
|
||||
{ %norun }
|
||||
|
||||
{$optimization regvar on}
|
||||
procedure test;
|
||||
var m,n: integer;
|
||||
begin
|
||||
for m := 100 downto 0 do begin
|
||||
prefetch (m);
|
||||
end;
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
Loading…
Reference in New Issue
Block a user