Skip to content

Commit ab1630f

Browse files
authored
Fix declaration of arguments in inline assembly
Argument 0 is modified so should be input and output
1 parent b824fa7 commit ab1630f

8 files changed

+18
-18
lines changed

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/ssymv_L_microk_bulldozer-2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ static void ssymv_kernel_4x4(BLASLONG from, BLASLONG to, FLOAT **a, FLOAT *x, FL
9898
"vmovss %%xmm3 ,12(%9) \n\t" // save temp2
9999

100100
:
101-
:
102-
"r" (from), // 0
101+
"+r" (from) // 0
102+
:
103103
"r" (to), // 1
104104
"r" (x), // 2
105105
"r" (y), // 3

kernel/x86_64/ssymv_L_microk_haswell-2.c

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

101101
:
102-
:
103-
"r" (from), // 0
102+
"+r" (from) // 0
103+
:
104104
"r" (to), // 1
105105
"r" (x), // 2
106106
"r" (y), // 3

kernel/x86_64/ssymv_L_microk_nehalem-2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ static void ssymv_kernel_4x4(BLASLONG from, BLASLONG to, FLOAT **a, FLOAT *x, F
113113
"movss %%xmm3 , 12(%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/ssymv_L_microk_sandy-2.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ static void ssymv_kernel_4x4(BLASLONG from, BLASLONG to, FLOAT **a, FLOAT *x, FL
109109
"vzeroupper \n\t"
110110

111111
:
112-
:
113-
"r" (from), // 0
112+
"+r" (from) // 0
113+
:
114114
"r" (to), // 1
115115
"r" (x), // 2
116116
"r" (y), // 3
@@ -217,8 +217,8 @@ static void ssymv_kernel_4x4(BLASLONG from, BLASLONG to, FLOAT **a, FLOAT *x, FL
217217
"vzeroupper \n\t"
218218

219219
:
220-
:
221-
"r" (from), // 0
220+
"+r" (from) // 0
221+
:
222222
"r" (to), // 1
223223
"r" (x), // 2
224224
"r" (y), // 3

0 commit comments

Comments
 (0)