[libc-commits] [PATCH] D124134: [libc] Use correct mnemonic for arm64_32 architecture

Dominic Chen via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Apr 20 17:32:59 PDT 2022


ddcc created this revision.
ddcc added reviewers: sivachandra, lntue.
Herald added subscribers: ecnelises, tschuett, kristof.beyls.
Herald added projects: libc-project, All.
ddcc requested review of this revision.

arm64_32 is an ILP32 platform


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124134

Files:
  libc/src/string/memory_utils/elements_aarch64.h


Index: libc/src/string/memory_utils/elements_aarch64.h
===================================================================
--- libc/src/string/memory_utils/elements_aarch64.h
+++ libc/src/string/memory_utils/elements_aarch64.h
@@ -55,7 +55,11 @@
 struct ZVA {
   static constexpr size_t SIZE = 64;
   static void splat_set(char *dst, const unsigned char value) {
+#if __SIZEOF_POINTER__ == 4
+    asm("dc zva, %w[dst]" : : [dst] "r"(dst) : "memory");
+#else
     asm("dc zva, %[dst]" : : [dst] "r"(dst) : "memory");
+#endif
   }
 };
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124134.424062.patch
Type: text/x-patch
Size: 535 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220421/dcfd6b15/attachment-0001.bin>


More information about the libc-commits mailing list