瀏覽代碼

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

git-svn-id: trunk@32782 -
Jonas Maebe 9 年之前
父節點
當前提交
4643913d58
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/ncgld.pas

+ 2 - 2
compiler/ncgld.pas

@@ -838,7 +838,7 @@ implementation
                     LOC_MMREGISTER,
                     LOC_MMREGISTER,
                     LOC_CMMREGISTER:
                     LOC_CMMREGISTER:
                       begin
                       begin
-{$ifdef x86}
+{$if defined(x86) and not defined(llvm)}
                         if (right.resultdef.typ=floatdef) and
                         if (right.resultdef.typ=floatdef) and
                            not use_vectorfpu(right.resultdef) then
                            not use_vectorfpu(right.resultdef) then
                           begin
                           begin
@@ -941,7 +941,7 @@ implementation
                   { we can't do direct moves between fpu and mm registers }
                   { we can't do direct moves between fpu and mm registers }
                   if left.location.loc in [LOC_MMREGISTER,LOC_CMMREGISTER] then
                   if left.location.loc in [LOC_MMREGISTER,LOC_CMMREGISTER] then
                     begin
                     begin
-{$ifdef x86}
+{$if defined(x86) and not defined(llvm)}
                       if not use_vectorfpu(right.resultdef) then
                       if not use_vectorfpu(right.resultdef) then
                         begin
                         begin
                           { perform size conversion if needed (the mm-code cannot convert an   }
                           { perform size conversion if needed (the mm-code cannot convert an   }