aboutsummaryrefslogtreecommitdiff
path: root/networking/tls_pstm_mul_comba.c
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-03-06 21:06:10 -0800
committerDenys Vlasenko <vda.linux@googlemail.com>2019-05-17 22:56:47 +0200
commitee9e5f92b659081a9d889ef16f91a070b8c36024 (patch)
treebd7f160b4e470dcbb4e6eb4386bd1eb23cee96b5 /networking/tls_pstm_mul_comba.c
parent4ebcdf7396b8e19ddf4e8b12a84b186fcbccabb8 (diff)
downloadbusybox-w32-ee9e5f92b659081a9d889ef16f91a070b8c36024.tar.gz
busybox-w32-ee9e5f92b659081a9d889ef16f91a070b8c36024.tar.bz2
busybox-w32-ee9e5f92b659081a9d889ef16f91a070b8c36024.zip
networking: cc is not a register
gcc accepts __asm__ ( "" : : : "%cc"); but cc is not a real register and clang does not like it. networking/tls_pstm_montgomery_reduce.c:385:4: error: unknown register name '%cc' in asm | INNERMUL; | ^ The % syntax nominally goes before a register, in this case cc, like "memory" isn't a true register it's just a way of specifying that the condition code registers for the target are clobbered Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tls_pstm_mul_comba.c')
-rw-r--r--networking/tls_pstm_mul_comba.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/tls_pstm_mul_comba.c b/networking/tls_pstm_mul_comba.c
index ac4fcc3ef..af50358e5 100644
--- a/networking/tls_pstm_mul_comba.c
+++ b/networking/tls_pstm_mul_comba.c
@@ -85,7 +85,7 @@ asm( \
85 "addl %%eax,%0 \n\t" \ 85 "addl %%eax,%0 \n\t" \
86 "adcl %%edx,%1 \n\t" \ 86 "adcl %%edx,%1 \n\t" \
87 "adcl $0,%2 \n\t" \ 87 "adcl $0,%2 \n\t" \
88 :"=rm"(c0), "=rm"(c1), "=rm"(c2): "0"(c0), "1"(c1), "2"(c2), "m"(i), "m"(j) :"%eax","%edx","%cc"); 88 :"=rm"(c0), "=rm"(c1), "=rm"(c2): "0"(c0), "1"(c1), "2"(c2), "m"(i), "m"(j) :"%eax","%edx","cc");
89 //bbox: ^^^ replaced "=r" with "=rm": %ebx is not available on shared build 89 //bbox: ^^^ replaced "=r" with "=rm": %ebx is not available on shared build
90 90
91/******************************************************************************/ 91/******************************************************************************/
@@ -155,7 +155,7 @@ asm( \
155 " ADDS %0,%0,r0 \n\t" \ 155 " ADDS %0,%0,r0 \n\t" \
156 " ADCS %1,%1,r1 \n\t" \ 156 " ADCS %1,%1,r1 \n\t" \
157 " ADC %2,%2,#0 \n\t" \ 157 " ADC %2,%2,#0 \n\t" \
158 :"=r"(c0), "=r"(c1), "=r"(c2) : "0"(c0), "1"(c1), "2"(c2), "r"(i), "r"(j) : "r0", "r1", "%cc"); 158 :"=r"(c0), "=r"(c1), "=r"(c2) : "0"(c0), "1"(c1), "2"(c2), "r"(i), "r"(j) : "r0", "r1", "cc");
159 159
160/******************************************************************************/ 160/******************************************************************************/
161#elif defined(PSTM_MIPS) 161#elif defined(PSTM_MIPS)