Eliminate loop code when called as/from dsdot
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Wed, 25 Oct 2017 14:45:41 +0000 (16:45 +0200)
committerGitHub <noreply@github.com>
Wed, 25 Oct 2017 14:45:41 +0000 (16:45 +0200)
kernel/x86_64/sdot_microk_haswell-2.c

index 4051f9c..3248c40 100644 (file)
@@ -53,9 +53,11 @@ static void sdot_kernel_16( BLASLONG n, FLOAT *x, FLOAT *y, FLOAT *dot)
        "vfmadd231ps    64(%3,%0,4), %%ymm14, %%ymm6 \n\t"  // 2 * y
        "vfmadd231ps    96(%3,%0,4), %%ymm15, %%ymm7 \n\t"  // 2 * y
 
+#ifndef DSDOT
        "addq           $32 , %0                     \n\t"
        "subq           $32 , %1                     \n\t"              
        "jnz            1b                           \n\t"
+#endif
 
        "vextractf128   $1 , %%ymm4 , %%xmm12        \n\t"
        "vextractf128   $1 , %%ymm5 , %%xmm13        \n\t"