Browse Source

* fix test for x86_64 targets using the SysV abi

git-svn-id: trunk@47638 -
florian 4 years ago
parent
commit
8ddcb34e60
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tests/webtbs/tw29957.pp

+ 5 - 0
tests/webtbs/tw29957.pp

@@ -45,8 +45,13 @@ type
 
  function _VectorDotProductAVX(Vector1, Vector2: TVector4): Single; assembler;
  asm
+{$if defined(cpux86_64) and not(defined(win64))}
+   VMOVLHPS XMM0,XMM0,XMM1
+   VMOVLHPS XMM1,XMM2,XMM3
+{$else defined(cpux86_64) and not(defined(win64))}
    VMOVUPS XMM0, [Vector1]
    VMOVUPS XMM1, [Vector2]
+{$endif defined(cpux86_64) and not(defined(win64))}
    VDPPS XMM0, XMM0, XMM1, $71 { Only perform calculations on the X, Y and Z coordinates; only store result in the first element }
    VMOVSS Result, XMM0 { Store result - first element of XMM0 }
  end;