Skip to content

Commit 63d7bad

Browse files
authored
Merge pull request #2010 from martin-frbg/issue2009
Fix declaration of input arguments in x86_64 GEMV, SYMV and DSCAL
2 parents 03a2bf2 + ab1630f commit 63d7bad

21 files changed

+73
-73
lines changed

kernel/x86_64/dgemv_n_4.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ static void dgemv_kernel_4x2( BLASLONG n, FLOAT **ap, FLOAT *x, FLOAT *y, FLOAT
111111
"jnz 1b \n\t"
112112

113113
:
114-
:
115-
"r" (i), // 0
116-
"r" (n), // 1
114+
"+r" (i), // 0
115+
"+r" (n) // 1
116+
:
117117
"r" (x), // 2
118118
"r" (y), // 3
119119
"r" (ap[0]), // 4
@@ -166,9 +166,9 @@ static void dgemv_kernel_4x1(BLASLONG n, FLOAT *ap, FLOAT *x, FLOAT *y, FLOAT *a
166166
"jnz 1b \n\t"
167167

168168
:
169+
"+r" (i), // 0
170+
"+r" (n) // 1
169171
:
170-
"r" (i), // 0
171-
"r" (n), // 1
172172
"r" (x), // 2
173173
"r" (y), // 3
174174
"r" (ap), // 4

kernel/x86_64/dgemv_t_4.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ static void dgemv_kernel_4x2(BLASLONG n, FLOAT *ap0, FLOAT *ap1, FLOAT *x, FLOAT
127127
"movsd %%xmm11,8(%2) \n\t"
128128

129129
:
130-
:
131-
"r" (i), // 0
132-
"r" (n), // 1
130+
"+r" (i), // 0
131+
"+r" (n) // 1
132+
:
133133
"r" (y), // 2
134134
"r" (ap0), // 3
135135
"r" (ap1), // 4
@@ -195,9 +195,9 @@ static void dgemv_kernel_4x1(BLASLONG n, FLOAT *ap, FLOAT *x, FLOAT *y)
195195
"movsd %%xmm10, (%2) \n\t"
196196

197197
:
198-
:
199-
"r" (i), // 0
200-
"r" (n), // 1
198+
"+r" (i), // 0
199+
"+r" (n) // 1
200+
:
201201
"r" (y), // 2
202202
"r" (ap), // 3
203203
"r" (x) // 4
@@ -259,9 +259,9 @@ static void add_y(BLASLONG n, FLOAT da , FLOAT *src, FLOAT *dest, BLASLONG inc_d
259259
"jnz 1b \n\t"
260260

261261
:
262-
:
263-
"r" (i), // 0
264-
"r" (n), // 1
262+
"+r" (i), // 0
263+
"+r" (n) // 1
264+
:
265265
"r" (&da), // 2
266266
"r" (src), // 3
267267
"r" (dest) // 4

kernel/x86_64/dscal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ static void dscal_kernel_inc_8(BLASLONG n, FLOAT *alpha, FLOAT *x, BLASLONG inc_
136136
"jnz 1b \n\t"
137137

138138
:
139+
"+r" (n) // 0
139140
:
140-
"r" (n), // 0
141141
"r" (x), // 1
142142
"r" (x1), // 2
143143
"r" (alpha), // 3

kernel/x86_64/dsymv_L_microk_bulldozer-2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ static void dsymv_kernel_4x4(BLASLONG from, BLASLONG to, FLOAT **a, FLOAT *x, FL
113113
"vmovsd %%xmm3 ,24(%9) \n\t" // save temp2
114114

115115
:
116-
:
117-
"r" (from), // 0
116+
"+r" (from) // 0
117+
:
118118
"r" (to), // 1
119119
"r" (x), // 2
120120
"r" (y), // 3

kernel/x86_64/dsymv_L_microk_haswell-2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ static void dsymv_kernel_4x4(BLASLONG from, BLASLONG to, FLOAT **a, FLOAT *x, FL
105105
"vzeroupper \n\t"
106106

107107
:
108-
:
109-
"r" (from), // 0
108+
"+r" (from) // 0
109+
:
110110
"r" (to), // 1
111111
"r" (x), // 2
112112
"r" (y), // 3

kernel/x86_64/dsymv_L_microk_nehalem-2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ static void dsymv_kernel_4x4(BLASLONG from, BLASLONG to, FLOAT **a, FLOAT *x, FL
108108
"movsd %%xmm3 , 24(%9) \n\t" // save temp2
109109

110110
:
111-
:
112-
"r" (from), // 0
111+
"+r" (from) // 0
112+
:
113113
"r" (to), // 1
114114
"r" (x), // 2
115115
"r" (y), // 3

kernel/x86_64/dsymv_L_microk_sandy-2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ static void dsymv_kernel_4x4(BLASLONG from, BLASLONG to, FLOAT **a, FLOAT *x, FL
114114
"vzeroupper \n\t"
115115

116116
:
117-
:
118-
"r" (from), // 0
117+
"+r" (from) // 0
118+
:
119119
"r" (to), // 1
120120
"r" (x), // 2
121121
"r" (y), // 3

kernel/x86_64/dsymv_U_microk_bulldozer-2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ static void dsymv_kernel_4x4(BLASLONG n, FLOAT *a0, FLOAT *a1, FLOAT *a2, FLOAT
106106
"vmovsd %%xmm3 ,24(%9) \n\t" // save temp2
107107

108108
:
109-
:
110-
"r" (i), // 0
111-
"r" (n), // 1
109+
"+r" (i), // 0
110+
"+r" (n) // 1
111+
:
112112
"r" (x), // 2
113113
"r" (y), // 3
114114
"r" (a0), // 4

kernel/x86_64/dsymv_U_microk_haswell-2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ static void dsymv_kernel_4x4(BLASLONG n, FLOAT *a0, FLOAT *a1, FLOAT *a2, FLOAT
107107
"vzeroupper \n\t"
108108

109109
:
110-
:
111-
"r" (i), // 0
112-
"r" (n), // 1
110+
"+r" (i), // 0
111+
"+r" (n) // 1
112+
:
113113
"r" (x), // 2
114114
"r" (y), // 3
115115
"r" (a0), // 4

kernel/x86_64/dsymv_U_microk_nehalem-2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ static void dsymv_kernel_4x4(BLASLONG n, FLOAT *a0, FLOAT *a1, FLOAT *a2, FLOAT
101101
"movsd %%xmm3 , 24(%9) \n\t" // save temp2
102102

103103
:
104-
:
105-
"r" (i), // 0
106-
"r" (n), // 1
104+
"+r" (i), // 0
105+
"+r" (n) // 1
106+
:
107107
"r" (x), // 2
108108
"r" (y), // 3
109109
"r" (a0), // 4

0 commit comments

Comments
 (0)