[compiler-rt] [AArch64][SME] Rewrite __arm_sc_memset to remove invalid instruction (PR #101522)
Kerry McLaughlin via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 03:30:44 PDT 2024
================
@@ -252,7 +252,29 @@ DEFINE_COMPILERRT_FUNCTION_ALIAS(__arm_sc_memmove, __arm_sc_memcpy)
#define zva_val x5
DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(__arm_sc_memset)
- dup v0.16B, valw
+# ifdef __ARM_FEATURE_SVE
+ mov z0.b, valw
+# else
+ sub sp, sp, #16
----------------
kmclaughlin-arm wrote:
Thanks for the suggestion, @efriedma-quic!
https://github.com/llvm/llvm-project/pull/101522
More information about the llvm-commits
mailing list