[ZARCH] Fix copy constraint
authormaamountki <m.tk1@hotmail.com>
Tue, 5 Feb 2019 05:51:19 +0000 (07:51 +0200)
committerGitHub <noreply@github.com>
Tue, 5 Feb 2019 05:51:19 +0000 (07:51 +0200)
kernel/zarch/ccopy.c
kernel/zarch/dcopy.c
kernel/zarch/scopy.c
kernel/zarch/zcopy.c

index 1b93a81..d17bddc 100644 (file)
@@ -36,7 +36,7 @@ static void ccopy_kernel_32(BLASLONG n, FLOAT *x, FLOAT *y) {
        "la  %[x],256(%[x])\n\t"
        "la  %[y],256(%[y])\n\t"
        "brctg %[n],0b"
-       : "=m"(*(FLOAT (*)[n * 2]) y),[x] "+&a"(x),[y] "+&a"(y)
+       : "=m"(*(FLOAT (*)[n * 2]) y),[x] "+&a"(x),[y] "+&a"(y),[n] "+&r"(n)
        : "m"(*(const FLOAT (*)[n * 2]) x)
        : "cc");
 }
index f7cbf54..b6a740c 100644 (file)
@@ -36,7 +36,7 @@ static void dcopy_kernel_32(BLASLONG n, FLOAT *x, FLOAT *y) {
        "la  %[x],256(%[x])\n\t"
        "la  %[y],256(%[y])\n\t"
        "brctg %[n],0b"
-       : "=m"(*(FLOAT (*)[n]) y),[x] "+&a"(x),[y] "+&a"(y)
+       : "=m"(*(FLOAT (*)[n]) y),[x] "+&a"(x),[y] "+&a"(y),[n] "+&r"(n)
        : "m"(*(const FLOAT (*)[n]) x)
        : "cc");
 }
index 44d27b0..4e49937 100644 (file)
@@ -36,7 +36,7 @@ static void scopy_kernel_64(BLASLONG n, FLOAT *x, FLOAT *y) {
        "la  %[x],256(%[x])\n\t"
        "la  %[y],256(%[y])\n\t"
        "brctg %[n],0b"
-       : "=m"(*(FLOAT (*)[n]) y),[x] "+&a"(x),[y] "+&a"(y)
+       : "=m"(*(FLOAT (*)[n]) y),[x] "+&a"(x),[y] "+&a"(y),[n] "+&r"(n)
        : "m"(*(const FLOAT (*)[n]) x)
        : "cc");
 }
index 2f80ced..50ff186 100644 (file)
@@ -36,7 +36,7 @@ static void zcopy_kernel_16(BLASLONG n, FLOAT *x, FLOAT *y) {
        "la  %[x],256(%[x])\n\t"
        "la  %[y],256(%[y])\n\t"
        "brctg %[n],0b"
-       : "=m"(*(FLOAT (*)[n * 2]) y),[x] "+&a"(x),[y] "+&a"(y)
+       : "=m"(*(FLOAT (*)[n * 2]) y),[x] "+&a"(x),[y] "+&a"(y),[n] "+&r"(n)
        : "m"(*(const FLOAT (*)[n * 2]) x)
        : "cc");
 }