mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
SP int ARM: Fix div word asm to indicate flags changed
"cc" needs to be set in assembly code as a modified register for div word for ARM64 and ARM32.
This commit is contained in:
@ -1049,7 +1049,7 @@ static WC_INLINE sp_int_digit sp_div_word(sp_int_digit hi, sp_int_digit lo,
|
|||||||
|
|
||||||
: [hi] "+r" (hi), [lo] "+r" (lo), [d] "+r" (d)
|
: [hi] "+r" (hi), [lo] "+r" (lo), [d] "+r" (d)
|
||||||
:
|
:
|
||||||
: "x3", "x4", "x5", "x6"
|
: "x3", "x4", "x5", "x6", "cc"
|
||||||
);
|
);
|
||||||
|
|
||||||
return hi;
|
return hi;
|
||||||
@ -1292,7 +1292,7 @@ static WC_INLINE sp_int_digit sp_div_word(sp_int_digit hi, sp_int_digit lo,
|
|||||||
#else
|
#else
|
||||||
:
|
:
|
||||||
#endif
|
#endif
|
||||||
: "r4", "r5", "r6", "r8", "r9"
|
: "r4", "r5", "r6", "r8", "r9", "cc"
|
||||||
);
|
);
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
@ -1362,7 +1362,7 @@ static WC_INLINE sp_int_digit sp_div_word(sp_int_digit hi, sp_int_digit lo,
|
|||||||
|
|
||||||
: [hi] "+r" (hi), [lo] "+r" (lo), [d] "+r" (d)
|
: [hi] "+r" (hi), [lo] "+r" (lo), [d] "+r" (d)
|
||||||
:
|
:
|
||||||
: "r3", "r4", "r5", "r6"
|
: "r3", "r4", "r5", "r6", "cc"
|
||||||
);
|
);
|
||||||
|
|
||||||
return hi;
|
return hi;
|
||||||
@ -3222,7 +3222,7 @@ static WC_INLINE sp_int_digit sp_div_word(sp_int_digit hi, sp_int_digit lo,
|
|||||||
"movs %[hi], r3\n\t"
|
"movs %[hi], r3\n\t"
|
||||||
: [hi] "+l" (hi), [lo] "+l" (lo), [d] "+l" (d)
|
: [hi] "+l" (hi), [lo] "+l" (lo), [d] "+l" (d)
|
||||||
:
|
:
|
||||||
: "r3", "r4", "r5", "r6", "r7", "r8", "r9"
|
: "r3", "r4", "r5", "r6", "r7", "r8", "r9", "cc"
|
||||||
);
|
);
|
||||||
return (uint32_t)(size_t)hi;
|
return (uint32_t)(size_t)hi;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user