From 3f8e483eed49c46fb80d36b58639beb18b514c0f Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Fri, 8 Sep 2023 17:57:40 +0100 Subject: [PATCH] Mark y as modified in x86 asm for mbedtls_ct_uint_lt Signed-off-by: Dave Rodgman --- library/constant_time_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/constant_time_impl.h b/library/constant_time_impl.h index 70e8b9a577..4290e6024e 100644 --- a/library/constant_time_impl.h +++ b/library/constant_time_impl.h @@ -366,9 +366,9 @@ static inline mbedtls_ct_condition_t mbedtls_ct_uint_lt(mbedtls_ct_uint_t x, mbe "sar $31, %[x] \n\t" : [s] "=&b" (s), - [x] "+&a" (x) + [x] "+&a" (x), + [y] "+&c" (y) : - [y] "c" (y) : ); return (mbedtls_ct_condition_t) x;