Explicitly use 32bit registers in AArch64
@@ -83,8 +83,8 @@ _INLINE_ uint32_t secure_cmp32(IN const uint32_t v1, IN const uint32_t v2)
{
#if defined(__aarch64__)
uint32_t res;
- __asm__ __volatile__("cmp %1, %2; \n "
- "cset %0, EQ; \n"
+ __asm__ __volatile__("cmp %w1, %w2; \n "
+ "cset %w0, EQ; \n"
: "=r" (res)
: "r"(v1), "r"(v2)
:);
@@ -116,8 +116,8 @@ _INLINE_ uint32_t secure_l32_mask(IN const uint32_t v1, IN const uint32_t v2)
#if defined(__aarch64__)
uint32_t res;
- __asm__ __volatile__("cmp %1, %2; \n "
- "cset %0, LS; \n"
+ __asm__ __volatile__("cmp %w1, %w2; \n "
+ "cset %w0, LS; \n"
: "=r" (res)
: "r"(v1), "r"(v2)
:);
