ec/asm/ecp_nistz256-{!x86_64}.pl: fix scatter_w7 function.
[openssl.git] / crypto / ec / asm / ecp_nistz256-sparcv9.pl
index 9af1fae8538d0f6ceb2506afb811d04d46a0281f..59df0f73b61d9cfea10775f51b369065d25332fe 100755 (executable)
@@ -1531,13 +1531,13 @@ ecp_nistz256_scatter_w7:
        ld      [$inp],%l0
        add     $inp,4,$inp
        subcc   $index,1,$index
-       stb     %l0,[$out+64*0-1]
+       stb     %l0,[$out+64*0]
        srl     %l0,8,%l1
-       stb     %l1,[$out+64*1-1]
+       stb     %l1,[$out+64*1]
        srl     %l0,16,%l2
-       stb     %l2,[$out+64*2-1]
+       stb     %l2,[$out+64*2]
        srl     %l0,24,%l3
-       stb     %l3,[$out+64*3-1]
+       stb     %l3,[$out+64*3]
        bne     .Loop_scatter_w7
        add     $out,64*4,$out