]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix: ecp_nistz256-armv4.S bad arguments
authorHenry N <12493969+HenryNe@users.noreply.github.com>
Thu, 10 Sep 2020 21:55:28 +0000 (23:55 +0200)
committerKurt Roeckx <kurt@roeckx.be>
Sun, 20 Sep 2020 12:21:15 +0000 (14:21 +0200)
Fix this error:

crypto/ec/ecp_nistz256-armv4.S:3853: Error: bad arguments to instruction -- `orr r11,r10'
crypto/ec/ecp_nistz256-armv4.S:3854: Error: bad arguments to instruction -- `orr r11,r12'
crypto/ec/ecp_nistz256-armv4.S:3855: Error: bad arguments to instruction -- `orrs r11,r14'

CLA: trivial

Fixes #12848

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
GH: #12854

crypto/ec/asm/ecp_nistz256-armv4.pl

index 32fd9087e03ebe4be74b871941e6797db2586f0f..0adad26cb11fa870fbccad9bce3be06c733edae4 100755 (executable)
@@ -1521,9 +1521,9 @@ ecp_nistz256_point_add:
        ldr     $t2,[sp,#32*18+12]      @ ~is_equal(S1,S2)
        mvn     $t0,$t0                 @ -1/0 -> 0/-1
        mvn     $t1,$t1                 @ -1/0 -> 0/-1
-       orr     $a0,$t0
-       orr     $a0,$t1
-       orrs    $a0,$t2                 @ set flags
+       orr     $a0,$a0,$t0
+       orr     $a0,$a0,$t1
+       orrs    $a0,$a0,$t2             @ set flags
 
        @ if(~is_equal(U1,U2) | in1infty | in2infty | ~is_equal(S1,S2))
        bne     .Ladd_proceed