diff options
Diffstat (limited to 'string/aarch64/asmdefs.h')
-rw-r--r-- | string/aarch64/asmdefs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/string/aarch64/asmdefs.h b/string/aarch64/asmdefs.h index b5ad6fb..18c331b 100644 --- a/string/aarch64/asmdefs.h +++ b/string/aarch64/asmdefs.h @@ -80,4 +80,13 @@ GNU_PROPERTY (FEATURE_1_AND, FEATURE_1_BTI|FEATURE_1_PAC) #define SIZE_ARG(n) #endif +/* Compiler supports SVE instructions */ +#ifndef HAVE_SVE +# if __aarch64__ && (__GNUC__ >= 8 || __clang_major__ >= 5) +# define HAVE_SVE 1 +# else +# define HAVE_SVE 0 +# endif +#endif + #endif |