[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
Thu Apr 21 15:13:34 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe8572aca0c42: [libc] Use correct mnemonic for arm64_32 architecture (authored by ddcc).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124134/new/
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.424307.patch
Type: text/x-patch
Size: 535 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220421/cda8f082/attachment.bin>
More information about the libc-commits
mailing list