diff options
author | Martin Storsjö <martin@martin.st> | 2023-10-12 23:18:28 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2024-09-27 00:03:04 +0300 |
commit | e6e56fd7a7738c30f3052067ba35cba346fdde8c (patch) | |
tree | b9982806d10877299356c3d4dc082779ee60e4cf /libavutil/aarch64 | |
parent | 067abbfe9dbf136c5621592622fa93bdd0f9f84d (diff) | |
download | ffmpeg-e6e56fd7a7738c30f3052067ba35cba346fdde8c.tar.gz |
configure: Add detection of assembler support for SVE/SVE2
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/aarch64')
-rw-r--r-- | libavutil/aarch64/asm.S | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libavutil/aarch64/asm.S b/libavutil/aarch64/asm.S index 1840f9fb01..50ce7d4dfd 100644 --- a/libavutil/aarch64/asm.S +++ b/libavutil/aarch64/asm.S @@ -56,8 +56,26 @@ #define DISABLE_I8MM #endif +#if HAVE_AS_ARCHEXT_SVE_DIRECTIVE +#define ENABLE_SVE .arch_extension sve +#define DISABLE_SVE .arch_extension nosve +#else +#define ENABLE_SVE +#define DISABLE_SVE +#endif + +#if HAVE_AS_ARCHEXT_SVE2_DIRECTIVE +#define ENABLE_SVE2 .arch_extension sve2 +#define DISABLE_SVE2 .arch_extension nosve2 +#else +#define ENABLE_SVE2 +#define DISABLE_SVE2 +#endif + DISABLE_DOTPROD DISABLE_I8MM +DISABLE_SVE +DISABLE_SVE2 /* Support macros for |