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_montgomery_reduce.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_montgomery_reduce.c')
-rw-r--r-- | networking/tls_pstm_montgomery_reduce.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/networking/tls_pstm_montgomery_reduce.c b/networking/tls_pstm_montgomery_reduce.c index d46e2aa..20f9c26 100644 --- a/networking/tls_pstm_montgomery_reduce.c +++ b/networking/tls_pstm_montgomery_reduce.c @@ -73,7 +73,7 @@ asm( \ "movl %%edx,%1 \n\t" \ :"=g"(_c[LO]), "=r"(cy) \ :"0"(_c[LO]), "1"(cy), "g"(mu), "g"(*tmpm++) \ -: "%eax", "%edx", "%cc") +: "%eax", "%edx", "cc") #define PROPCARRY \ asm( \ @@ -82,7 +82,7 @@ asm( \ "movzbl %%al,%1 \n\t" \ :"=g"(_c[LO]), "=r"(cy) \ :"0"(_c[LO]), "1"(cy) \ -: "%eax", "%cc") +: "%eax", "cc") /******************************************************************************/ #elif defined(PSTM_X86_64) @@ -235,7 +235,7 @@ asm( \ " STR r0,%1 \n\t" \ :"=r"(cy),"=m"(_c[0])\ :"0"(cy),"r"(mu),"r"(*tmpm++),"m"(_c[0])\ - :"r0","%cc"); + :"r0","cc"); #define PROPCARRY \ asm( \ " LDR r0,%1 \n\t" \ @@ -246,7 +246,7 @@ asm( \ " MOVCC %0,#0 \n\t" \ :"=r"(cy),"=m"(_c[0])\ :"0"(cy),"m"(_c[0])\ - :"r0","%cc"); + :"r0","cc"); #else /* Non-Thumb2 code */ //#pragma message ("Using 32 bit ARM Assembly Optimizations") #define INNERMUL \ @@ -259,7 +259,7 @@ asm( \ " STR r0,%1 \n\t" \ :"=r"(cy),"=m"(_c[0])\ :"0"(cy),"r"(mu),"r"(*tmpm++),"m"(_c[0])\ - :"r0","%cc"); + :"r0","cc"); #define PROPCARRY \ asm( \ " LDR r0,%1 \n\t" \ @@ -269,7 +269,7 @@ asm( \ " MOVCC %0,#0 \n\t" \ :"=r"(cy),"=m"(_c[0])\ :"0"(cy),"m"(_c[0])\ - :"r0","%cc"); + :"r0","cc"); #endif /* __thumb2__ */ |