aboutsummaryrefslogtreecommitdiffstats
path: root/security/libgcrypt/files/extra-patch-aarch64
blob: 90f85b22b693911efee8513e08050c29c4a6246a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- cipher/cipher-gcm-armv8-aarch64-ce.S.orig   2016-11-12 10:39:35 UTC
+++ cipher/cipher-gcm-armv8-aarch64-ce.S
@@ -23,7 +23,7 @@
     defined(HAVE_COMPATIBLE_GCC_AARCH64_PLATFORM_AS) && \
     defined(HAVE_GCC_INLINE_ASM_AARCH64_CRYPTO)
 
-.arch armv8-a+crypto
+.cpu generic+simd+crypto
 
 .text
 
--- cipher/rijndael-armv8-aarch64-ce.S.orig 2017-01-18 11:28:40 UTC
+++ cipher/rijndael-armv8-aarch64-ce.S
@@ -23,7 +23,7 @@
     defined(HAVE_COMPATIBLE_GCC_AARCH64_PLATFORM_AS) && \
     defined(HAVE_GCC_INLINE_ASM_AARCH64_CRYPTO)
 
-.arch armv8-a+crypto
+.cpu generic+simd+crypto
 
 .text
 
--- cipher/sha1-armv8-aarch64-ce.S.orig 2016-11-12 10:39:35 UTC
+++ cipher/sha1-armv8-aarch64-ce.S
@@ -23,7 +23,7 @@
     defined(HAVE_COMPATIBLE_GCC_AARCH64_PLATFORM_AS) && \
     defined(HAVE_GCC_INLINE_ASM_AARCH64_CRYPTO) && defined(USE_SHA1)
 
-.arch armv8-a+crypto
+.cpu generic+simd+crypto
 
 .text
 
--- cipher/sha256-armv8-aarch64-ce.S.orig   2016-11-12 10:39:35 UTC
+++ cipher/sha256-armv8-aarch64-ce.S
@@ -23,7 +23,7 @@
     defined(HAVE_COMPATIBLE_GCC_AARCH64_PLATFORM_AS) && \
     defined(HAVE_GCC_INLINE_ASM_AARCH64_CRYPTO) && defined(USE_SHA256)
 
-.arch armv8-a+crypto
+.cpu generic+simd+crypto
 
 .text
 
--- configure.ac.orig   2017-01-18 11:37:00 UTC
+++ configure.ac
@@ -1623,7 +1623,7 @@ AC_CACHE_CHECK([whether GCC inline assem
           gcry_cv_gcc_inline_asm_aarch64_neon=no
           AC_COMPILE_IFELSE([AC_LANG_SOURCE(
           [[__asm__(
-                ".arch armv8-a\n\t"
+                ".cpu generic+simd\n\t"
                 "mov w0, \#42;\n\t"
                 "dup v0.8b, w0;\n\t"
                 "ld4 {v0.8b,v1.8b,v2.8b,v3.8b},[x0],\#32;\n\t"
@@ -1648,7 +1648,11 @@ AC_CACHE_CHECK([whether GCC inline assem
           gcry_cv_gcc_inline_asm_aarch64_crypto=no
           AC_COMPILE_IFELSE([AC_LANG_SOURCE(
           [[__asm__(
-                ".arch armv8-a+crypto\n\t"
+        ".cpu generic+simd\n\t"
+
+        "mov w0, \#42;\n\t"
+        "dup v0.8b, w0;\n\t"
+        "ld4 {v0.8b,v1.8b,v2.8b,v3.8b},[x0],\#32;\n\t"
 
                 "sha1h s0, s0;\n\t"
                 "sha1c q0, s0, v0.4s;\n\t"