[compiler-rt] Don't compile in unsupported assembly symbols (PR #104927)

Eleanor Bonnici via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 06:37:10 PDT 2024


https://github.com/eleanor-arm created https://github.com/llvm/llvm-project/pull/104927

sme-libc-mem-routines.S contains instructions like "fmov d0, x1" or "mov
x1, v0.D[0]" that require architecture to support armv8 fp and neon.


>From 3e04fab42176eaa17024e60281dca0b4a4405423 Mon Sep 17 00:00:00 2001
From: Eleanor Bonnici <eleanor.bonnici at arm.com>
Date: Tue, 20 Aug 2024 14:21:02 +0100
Subject: [PATCH] Don't compile in unsupported assembly symbols

sme-libc-mem-routines.S contains instructions like "fmov d0, x1" or "mov
x1, v0.D[0]" that require architecture to support armv8 fp and neon.
---
 compiler-rt/lib/builtins/aarch64/sme-libc-mem-routines.S | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/compiler-rt/lib/builtins/aarch64/sme-libc-mem-routines.S b/compiler-rt/lib/builtins/aarch64/sme-libc-mem-routines.S
index 0318d9a6f1ebd2..04fc73d361ad00 100644
--- a/compiler-rt/lib/builtins/aarch64/sme-libc-mem-routines.S
+++ b/compiler-rt/lib/builtins/aarch64/sme-libc-mem-routines.S
@@ -54,6 +54,8 @@
    The loop tail is handled by always copying 64 bytes from the end.
 */
 
+.arch armv8+fp+simd
+
 DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(__arm_sc_memcpy)
         add     srcend1, src, count
         add     dstend1, dstin, count



More information about the llvm-commits mailing list