diff options
author | sergei <sergei@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-11-15 10:37:59 +0000 |
---|---|---|
committer | sergei <sergei@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-11-15 10:37:59 +0000 |
commit | 37234c68d609637113127631bad4d8493a088535 (patch) | |
tree | df0564d8846a1fb0f753353b97fa88613eaa5890 /compiler/x86/nx86inl.pas | |
parent | 3988a51c8290e53f958d6c0aee4ada073e624dde (diff) | |
download | fpc-37234c68d609637113127631bad4d8493a088535.tar.gz |
* Don't generate x87 instructions for sin and cos on win64, somehow managed to not commit this part in r25995. Mantis #17273.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@26094 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/x86/nx86inl.pas')
-rw-r--r-- | compiler/x86/nx86inl.pas | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/compiler/x86/nx86inl.pas b/compiler/x86/nx86inl.pas index 9837bb3c70..45b31374e6 100644 --- a/compiler/x86/nx86inl.pas +++ b/compiler/x86/nx86inl.pas @@ -160,8 +160,13 @@ implementation exit; end; {$endif i8086} - expectloc:=LOC_FPUREGISTER; - first_cos_real := nil; + if (tfloatdef(pbestrealtype^).floattype=s80real) then + begin + expectloc:=LOC_FPUREGISTER; + result:=nil; + end + else + result:=inherited; end; function tx86inlinenode.first_sin_real : tnode; @@ -174,8 +179,13 @@ implementation exit; end; {$endif i8086} - expectloc:=LOC_FPUREGISTER; - first_sin_real := nil; + if (tfloatdef(pbestrealtype^).floattype=s80real) then + begin + expectloc:=LOC_FPUREGISTER; + result:=nil; + end + else + result:=inherited; end; |