[ZARCH] Fix copy constraint

This commit is contained in:
maamountki 2019-02-05 07:51:19 +02:00 committed by GitHub
parent 81daf6bc38
commit 61526480f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ static void ccopy_kernel_32(BLASLONG n, FLOAT *x, FLOAT *y) {
"la %[x],256(%[x])\n\t" "la %[x],256(%[x])\n\t"
"la %[y],256(%[y])\n\t" "la %[y],256(%[y])\n\t"
"brctg %[n],0b" "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) : "m"(*(const FLOAT (*)[n * 2]) x)
: "cc"); : "cc");
} }

View File

@ -36,7 +36,7 @@ static void dcopy_kernel_32(BLASLONG n, FLOAT *x, FLOAT *y) {
"la %[x],256(%[x])\n\t" "la %[x],256(%[x])\n\t"
"la %[y],256(%[y])\n\t" "la %[y],256(%[y])\n\t"
"brctg %[n],0b" "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) : "m"(*(const FLOAT (*)[n]) x)
: "cc"); : "cc");
} }

View File

@ -36,7 +36,7 @@ static void scopy_kernel_64(BLASLONG n, FLOAT *x, FLOAT *y) {
"la %[x],256(%[x])\n\t" "la %[x],256(%[x])\n\t"
"la %[y],256(%[y])\n\t" "la %[y],256(%[y])\n\t"
"brctg %[n],0b" "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) : "m"(*(const FLOAT (*)[n]) x)
: "cc"); : "cc");
} }

View File

@ -36,7 +36,7 @@ static void zcopy_kernel_16(BLASLONG n, FLOAT *x, FLOAT *y) {
"la %[x],256(%[x])\n\t" "la %[x],256(%[x])\n\t"
"la %[y],256(%[y])\n\t" "la %[y],256(%[y])\n\t"
"brctg %[n],0b" "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) : "m"(*(const FLOAT (*)[n * 2]) x)
: "cc"); : "cc");
} }