* ARM: Test if range check of floating point constants is necessary in the same way as on other targets. This should have been part of r10940 6 years ago...

git-svn-id: trunk@27630 -
This commit is contained in:
sergei 2014-04-22 06:51:54 +00:00
parent 313240b9e8
commit 196436b7e7

View File

@ -77,8 +77,7 @@ interface
begin
current_procinfo.aktlocaldata.concat(Tai_real_32bit.Create(ts32real(value_real)));
{ range checking? }
if ((cs_check_range in current_settings.localswitches) or
(cs_check_overflow in current_settings.localswitches)) and
if floating_point_range_check_error and
(tai_real_32bit(current_procinfo.aktlocaldata.last).value=MathInf.Value) then
Message(parser_e_range_check_error);
end;
@ -91,8 +90,7 @@ interface
current_procinfo.aktlocaldata.concat(Tai_real_64bit.Create(ts64real(value_real)));
{ range checking? }
if ((cs_check_range in current_settings.localswitches) or
(cs_check_overflow in current_settings.localswitches)) and
if floating_point_range_check_error and
(tai_real_64bit(current_procinfo.aktlocaldata.last).value=MathInf.Value) then
Message(parser_e_range_check_error);
end;
@ -102,8 +100,7 @@ interface
current_procinfo.aktlocaldata.concat(Tai_real_80bit.Create(value_real,tfloatdef(resultdef).size));
{ range checking? }
if ((cs_check_range in current_settings.localswitches) or
(cs_check_overflow in current_settings.localswitches)) and
if floating_point_range_check_error and
(tai_real_80bit(current_procinfo.aktlocaldata.last).value=MathInf.Value) then
Message(parser_e_range_check_error);
end;
@ -113,8 +110,7 @@ interface
current_procinfo.aktlocaldata.concat(Tai_real_128bit.Create(value_real));
{ range checking? }
if ((cs_check_range in current_settings.localswitches) or
(cs_check_overflow in current_settings.localswitches)) and
if floating_point_range_check_error and
(tai_real_128bit(current_procinfo.aktlocaldata.last).value=MathInf.Value) then
Message(parser_e_range_check_error);
end;