See: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0204j/Cjagjjb... The pre-UAL instruction is also accepted by modern assemblers.
Signed-off-by: Marcus Hoffmann m.hoffmann@cartelsol.com --- arm/ecc-521-modp.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arm/ecc-521-modp.asm b/arm/ecc-521-modp.asm index c311a89..3fba239 100644 --- a/arm/ecc-521-modp.asm +++ b/arm/ecc-521-modp.asm @@ -91,7 +91,7 @@ PROLOGUE(nettle_ecc_521_modp) adcs F0, F0, F3, lsr #9 C Copy low 9 bits to H, then shift right including carry and H, F0, T0 - rrx F0, F0 + mov F0, F0, rrx lsr F0, F0, #8 C Add in F1 = rp[33], with weight 2^1056 = 2^14 adds F0, F0, F1, lsl #14
Marcus Hoffmann m.hoffmann@cartelsol.com writes:
See: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0204j/Cjagjjb... The pre-UAL instruction is also accepted by modern assemblers.
Note that the URL is somewhat broken, it doesn't work with javascript disabled.
Signed-off-by: Marcus Hoffmann m.hoffmann@cartelsol.com
arm/ecc-521-modp.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arm/ecc-521-modp.asm b/arm/ecc-521-modp.asm index c311a89..3fba239 100644 --- a/arm/ecc-521-modp.asm +++ b/arm/ecc-521-modp.asm @@ -91,7 +91,7 @@ PROLOGUE(nettle_ecc_521_modp) adcs F0, F0, F3, lsr #9 C Copy low 9 bits to H, then shift right including carry and H, F0, T0
- rrx F0, F0
- mov F0, F0, rrx lsr F0, F0, #8 C Add in F1 = rp[33], with weight 2^1056 = 2^14 adds F0, F0, F1, lsl #14
Applied. Thanks!
/Niels
nettle-bugs@lists.lysator.liu.se