mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 20:29:17 +02:00
* fixed for targets where currency is implemented via int64 after r43829
git-svn-id: trunk@43882 -
This commit is contained in:
parent
166847c7c7
commit
32be078ab8
@ -115,6 +115,8 @@ function tllvmtypeconvnode.first_int_to_real: tnode;
|
|||||||
if (llvmflag_constrained_fptoi_itofp in llvmversion_properties[current_settings.llvmversion]) and
|
if (llvmflag_constrained_fptoi_itofp in llvmversion_properties[current_settings.llvmversion]) and
|
||||||
{ these are converted to 80 bits first in any case }
|
{ these are converted to 80 bits first in any case }
|
||||||
not(tfloatdef(resultdef).floattype in [s64currency,s64comp]) and
|
not(tfloatdef(resultdef).floattype in [s64currency,s64comp]) and
|
||||||
|
{ no actuual int -> floating point conversion }
|
||||||
|
(torddef(left.resultdef).ordtype<>scurrency) and
|
||||||
((left.resultdef.size>=resultdef.size) or
|
((left.resultdef.size>=resultdef.size) or
|
||||||
((torddef(left.resultdef).ordtype=u64bit) and
|
((torddef(left.resultdef).ordtype=u64bit) and
|
||||||
(tfloatdef(resultdef).floattype=s80real))) then
|
(tfloatdef(resultdef).floattype=s80real))) then
|
||||||
|
Loading…
Reference in New Issue
Block a user