Skip to content

Commit 1d5279f

Browse files
authored
Fix clobber list entries for arrays in inline asm
1 parent 79a1f38 commit 1d5279f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+86
-85
lines changed

kernel/power/casum_microk_power8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static float casum_kernel_16 (long n, float *x)
159159
"=wa" (t2), // 5
160160
"=wa" (t3) // 6
161161
:
162-
"m" (*x),
162+
"m" (*(const float (*)[n * 2]) x),
163163
"b" (16), // 8
164164
"b" (32), // 9
165165
"b" (48), // 10

kernel/power/caxpy_microk_power10.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,14 @@ static void caxpy_kernel_8 (long n, float *x, float *y,
199199

200200
"#n=%1 x=%5=%2 y=%0=%3 alpha=(%7,%8) mvecp=%6=%9 ytmp=%4\n"
201201
:
202-
"+m" (*y),
202+
"+m" (*(float (*)[n * 2]) y),
203203
"+r" (n), // 1
204204
"+b" (x), // 2
205205
"+b" (y), // 3
206206
"=b" (ytmp) // 4
207207
:
208-
"m" (*x),
209-
"m" (*mvecp),
208+
"m" (*(const float (*)[n * 2]) x),
209+
"m" (*(const float (*)[2]) mvecp),
210210
"d" (alpha_r), // 7
211211
"d" (alpha_i), // 8
212212
"4" (mvecp), // 9

kernel/power/ccopy_microk_power8.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ static void ccopy_kernel_32 (long n, float *x, float *y)
134134

135135
"#n=%1 x=%4=%2 y=%0=%3 o16=%5 o32=%6 o48=%7 o64=%8 o80=%9 o96=%10 o112=%11"
136136
:
137-
"=m" (*y),
137+
"=m" (*(float (*)[n * 2]) y),
138138
"+r" (n), // 1
139139
"+b" (x), // 2
140140
"+b" (y) // 3
141141
:
142-
"m" (*x),
142+
"m" (*(const float (*)[n * 2]) x),
143143
"b" (16), // 5
144144
"b" (32), // 6
145145
"b" (48), // 7

kernel/power/cdot_microk_power10.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,13 @@ static void cdot_kernel_8 (long n, float *x, float *y, float *dot)
166166

167167
"#n=%1 x=%4=%2 y=%5=%3 dot=%0=%6"
168168
:
169-
"=m" (*dot),
169+
"=m" (*(float (*)[4]) dot),
170170
"+r" (n), // 1
171171
"+b" (x), // 2
172172
"+b" (y) // 3
173173
:
174-
"m" (*x),
175-
"m" (*y),
174+
"m" (*(float (*)[n * 2]) x),
175+
"m" (*(float (*)[n * 2]) y),
176176
"b" (dot), // 6
177177
"wa" (mask)
178178
:

kernel/power/copy_microk_power10.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@ static void copy_kernel (BLASLONG n, FLOAT *x, FLOAT *y)
241241

242242
"#n=%1 x=%4=%2 y=%0=%3"
243243
:
244-
"=m" (*y),
244+
"=m" (*(FLOAT (*)[n]) y),
245245
"+r" (n), // 1
246246
"+b" (x), // 2
247247
"+b" (y) // 3
248248
:
249-
"m" (*x)
249+
"m" (*(FLOAT (*)[n]) x)
250250
:
251251
"cr0",
252252
"vs32","vs33","vs34","vs35","vs36","vs37","vs38","vs39",

kernel/power/cscal_microk_power10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ static void zscal_kernel_8 (long n, float *x, float alpha_r, float alpha_i)
204204

205205
"#n=%1 x=%0=%2 alpha=(%3,%4)\n"
206206
:
207-
"+m" (*x),
207+
"+m" (*(float (*)[n * 2]) x),
208208
"+r" (n), // 1
209209
"+b" (x) // 2
210210
:

kernel/power/cswap_microk_power10.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ static void cswap_kernel_32 (long n, float *x, float *y)
155155

156156
"#n=%2 x=%0=%3 y=%1=%4"
157157
:
158-
"+m" (*x),
159-
"+m" (*y),
158+
"+m" (*(FLOAT (*)[n * 2]) x),
159+
"+m" (*(FLOAT (*)[n * 2]) y),
160160
"+r" (n), // 2
161161
"+b" (x), // 3
162162
"+b" (y) // 4

kernel/power/cswap_microk_power8.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ static void cswap_kernel_32 (long n, float *x, float *y)
135135

136136
"#n=%2 x=%0=%3 y=%1=%4 o16=%5 o32=%6 o48=%7 o64=%8 o80=%9 o96=%10 o112=%11"
137137
:
138-
"+m" (*x),
139-
"+m" (*y),
138+
"+m" (*(float (*)[n * 2]) x),
139+
"+m" (*(float (*)[n * 2]) y),
140140
"+r" (n), // 2
141141
"+b" (x), // 3
142142
"+b" (y) // 4

kernel/power/dasum_microk_power10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ static double dasum_kernel_16 (long n, double *x)
225225
"=wa" (a6), // 17
226226
"=wa" (a7) // 18
227227
:
228-
"m" (*x)
228+
"m" (*(const double (*)[n]) x)
229229
:
230230
"cr0",
231231
"vs32","vs33","vs34","vs35","vs36","vs37","vs38","vs39",

kernel/power/dasum_microk_power8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static double dasum_kernel_16 (long n, double *x)
154154
"=wa" (t2), // 5
155155
"=wa" (t3) // 6
156156
:
157-
"m" (*x),
157+
"m" (*(const double (*)[n]) x),
158158
"b" (16), // 8
159159
"b" (32), // 9
160160
"b" (48), // 10

0 commit comments

Comments
 (0)