[vlc-devel] [PATCH] aarch64: Use ".arch armv8-a+feature" instead of ".arch_extension feature"

Martin Storsjö martin at martin.st
Fri Dec 21 23:13:29 CET 2018


Clang doesn't support the .arch_extension directive for aarch64 at
the moment, but the same effect can be achieved by using .arch
instead.
---
This is an alternative, much simpler, fix for this issue.

Posting the patch for reference for others, if nothing else.
---
 modules/video_filter/deinterlace/merge_arm64.S | 2 +-
 modules/video_filter/deinterlace/merge_sve.S   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_filter/deinterlace/merge_arm64.S b/modules/video_filter/deinterlace/merge_arm64.S
index 9efc8f7..1d2a022 100644
--- a/modules/video_filter/deinterlace/merge_arm64.S
+++ b/modules/video_filter/deinterlace/merge_arm64.S
@@ -21,7 +21,7 @@
 
 #include "../../arm_neon/asm.S"
 
-	.arch_extension simd
+	.arch armv8-a+simd
 	.text
 
 #define	DEST	x0
diff --git a/modules/video_filter/deinterlace/merge_sve.S b/modules/video_filter/deinterlace/merge_sve.S
index 9213d8b..9249ba3 100644
--- a/modules/video_filter/deinterlace/merge_sve.S
+++ b/modules/video_filter/deinterlace/merge_sve.S
@@ -18,7 +18,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-	.arch_extension sve
+	.arch armv8-a+sve
 
 	/* TODO: prefetch, unroll */
 
-- 
2.7.4



More information about the vlc-devel mailing list