summaryrefslogtreecommitdiff
path: root/compiler/ncgld.pas
diff options
context:
space:
mode:
authorjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2015-12-28 15:06:50 +0000
committerjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2015-12-28 15:06:50 +0000
commit4e4e41169711bbfd75d57dcb1d14573786d89253 (patch)
tree11952859f4f88efac3af818957578895f555da02 /compiler/ncgld.pas
parent892b1777cc6b8f8a8b6c71337366ca8ad180ee5f (diff)
downloadfpc-4e4e41169711bbfd75d57dcb1d14573786d89253.tar.gz
- disable x86-specific workarounds when using LLVM (even when targeting x86)
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@32782 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/ncgld.pas')
-rw-r--r--compiler/ncgld.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ncgld.pas b/compiler/ncgld.pas
index 9504f48320..64fcfb7b4e 100644
--- a/compiler/ncgld.pas
+++ b/compiler/ncgld.pas
@@ -838,7 +838,7 @@ implementation
LOC_MMREGISTER,
LOC_CMMREGISTER:
begin
-{$ifdef x86}
+{$if defined(x86) and not defined(llvm)}
if (right.resultdef.typ=floatdef) and
not use_vectorfpu(right.resultdef) then
begin
@@ -941,7 +941,7 @@ implementation
{ we can't do direct moves between fpu and mm registers }
if left.location.loc in [LOC_MMREGISTER,LOC_CMMREGISTER] then
begin
-{$ifdef x86}
+{$if defined(x86) and not defined(llvm)}
if not use_vectorfpu(right.resultdef) then
begin
{ perform size conversion if needed (the mm-code cannot convert an }