networking: cc is not a register
authorKhem Raj <raj.khem@gmail.com>
Thu, 7 Mar 2019 05:06:10 +0000 (21:06 -0800)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 17 May 2019 20:56:47 +0000 (22:56 +0200)
commitee9e5f92b659081a9d889ef16f91a070b8c36024
treebd7f160b4e470dcbb4e6eb4386bd1eb23cee96b5
parent4ebcdf7396b8e19ddf4e8b12a84b186fcbccabb8
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>
networking/tls_pstm_montgomery_reduce.c
networking/tls_pstm_mul_comba.c
networking/tls_pstm_sqr_comba.c