ARM64 assembly pack: make it Windows-friendly.
[openssl.git] / crypto / ec / asm / ecp_nistz256-armv8.pl
index d84f523cd1b9207e9e16c8f43fe03475f72c39f9..8914f1a619dafe060f8fbd6df21b9ba738f68324 100644 (file)
@@ -1654,7 +1654,7 @@ ecp_nistz256_scatter_w5:
 
        ldp     x4,x5,[$inp]            // X
        ldp     x6,x7,[$inp,#16]
 
        ldp     x4,x5,[$inp]            // X
        ldp     x6,x7,[$inp,#16]
-       st    w4,[$out,#64*0-4]
+       stur    w4,[$out,#64*0-4]
        lsr     x4,x4,#32
        str     w5,[$out,#64*1-4]
        lsr     x5,x5,#32
        lsr     x4,x4,#32
        str     w5,[$out,#64*1-4]
        lsr     x5,x5,#32
@@ -1670,7 +1670,7 @@ ecp_nistz256_scatter_w5:
 
        ldp     x4,x5,[$inp,#32]        // Y
        ldp     x6,x7,[$inp,#48]
 
        ldp     x4,x5,[$inp,#32]        // Y
        ldp     x6,x7,[$inp,#48]
-       st    w4,[$out,#64*0-4]
+       stur    w4,[$out,#64*0-4]
        lsr     x4,x4,#32
        str     w5,[$out,#64*1-4]
        lsr     x5,x5,#32
        lsr     x4,x4,#32
        str     w5,[$out,#64*1-4]
        lsr     x5,x5,#32
@@ -1686,7 +1686,7 @@ ecp_nistz256_scatter_w5:
 
        ldp     x4,x5,[$inp,#64]        // Z
        ldp     x6,x7,[$inp,#80]
 
        ldp     x4,x5,[$inp,#64]        // Z
        ldp     x6,x7,[$inp,#80]
-       st    w4,[$out,#64*0-4]
+       stur    w4,[$out,#64*0-4]
        lsr     x4,x4,#32
        str     w5,[$out,#64*1-4]
        lsr     x5,x5,#32
        lsr     x4,x4,#32
        str     w5,[$out,#64*1-4]
        lsr     x5,x5,#32