Browse Source

- disable x86-specific workarounds when using LLVM (even when targeting x86)

git-svn-id: trunk@32782 -
Jonas Maebe 9 years ago
parent
commit
4643913d58
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/ncgld.pas

+ 2 - 2
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   }