[PATCH 2/2] rijndael-ppc: fix wrong inline assembly constraint

Jussi Kivilinna jussi.kivilinna at iki.fi
Wed Dec 14 18:49:09 CET 2022


* cipher/rijndael-ppc-function.h (CBC_ENC_FUNC): Fix outiv constraint.
--

Noticed when trying to compile with powerpc64le clang. GCC accepted the
buggy constraint without complaints.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
 cipher/rijndael-ppc-functions.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cipher/rijndael-ppc-functions.h b/cipher/rijndael-ppc-functions.h
index 23fa4206..063c5358 100644
--- a/cipher/rijndael-ppc-functions.h
+++ b/cipher/rijndael-ppc-functions.h
@@ -373,7 +373,7 @@ void CBC_ENC_FUNC (void *context, unsigned char *iv_arg,
        * last one. */
       __asm__ volatile ("vcipherlast %0, %0, %2\n\t"
 			"vcipherlast %1, %1, %3\n\t"
-			: "+v" (iv), "+outiv" (outiv)
+			: "+v" (iv), "+v" (outiv)
 			: "v" (nextiv), "v" (rkeylast));
 
       VEC_STORE_BE ((u128_t *)out, 0, outiv, bige_const);
-- 
2.37.2




More information about the Gcrypt-devel mailing list