aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/aarch64
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2023-10-12 23:18:28 +0300
committerMartin Storsjö <martin@martin.st>2024-09-27 00:03:04 +0300
commite6e56fd7a7738c30f3052067ba35cba346fdde8c (patch)
treeb9982806d10877299356c3d4dc082779ee60e4cf /libavutil/aarch64
parent067abbfe9dbf136c5621592622fa93bdd0f9f84d (diff)
downloadffmpeg-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.S18
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