diff options
author | Khem Raj | 2019-03-06 21:06:10 -0800 |
---|---|---|
committer | Denys Vlasenko | 2019-05-17 22:56:47 +0200 |
commit | ee9e5f92b659081a9d889ef16f91a070b8c36024 (patch) | |
tree | bd7f160b4e470dcbb4e6eb4386bd1eb23cee96b5 /networking/tls_pstm_mul_comba.c | |
parent | 4ebcdf7396b8e19ddf4e8b12a84b186fcbccabb8 (diff) | |
download | busybox-ee9e5f92b659081a9d889ef16f91a070b8c36024.zip busybox-ee9e5f92b659081a9d889ef16f91a070b8c36024.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/tls_pstm_mul_comba.c b/networking/tls_pstm_mul_comba.c index ac4fcc3..af50358 100644 --- a/networking/tls_pstm_mul_comba.c +++ b/networking/tls_pstm_mul_comba.c @@ -85,7 +85,7 @@ asm( \ "addl %%eax,%0 \n\t" \ "adcl %%edx,%1 \n\t" \ "adcl $0,%2 \n\t" \ - :"=rm"(c0), "=rm"(c1), "=rm"(c2): "0"(c0), "1"(c1), "2"(c2), "m"(i), "m"(j) :"%eax","%edx","%cc"); + :"=rm"(c0), "=rm"(c1), "=rm"(c2): "0"(c0), "1"(c1), "2"(c2), "m"(i), "m"(j) :"%eax","%edx","cc"); //bbox: ^^^ replaced "=r" with "=rm": %ebx is not available on shared build /******************************************************************************/ @@ -155,7 +155,7 @@ asm( \ " ADDS %0,%0,r0 \n\t" \ " ADCS %1,%1,r1 \n\t" \ " ADC %2,%2,#0 \n\t" \ - :"=r"(c0), "=r"(c1), "=r"(c2) : "0"(c0), "1"(c1), "2"(c2), "r"(i), "r"(j) : "r0", "r1", "%cc"); + :"=r"(c0), "=r"(c1), "=r"(c2) : "0"(c0), "1"(c1), "2"(c2), "r"(i), "r"(j) : "r0", "r1", "cc"); /******************************************************************************/ #elif defined(PSTM_MIPS) |