[libc] Use correct mnemonic for arm64_32 architecture

arm64_32 is an ILP32 platform

Differential Revision: https://reviews.llvm.org/D124134
This commit is contained in:
Dominic Chen 2022-04-20 17:28:51 -07:00
parent 5ff992bca2
commit e8572aca0c
1 changed files with 4 additions and 0 deletions

View File

@ -55,7 +55,11 @@ using _64 = Chained<_32, _32>;
struct ZVA { struct ZVA {
static constexpr size_t SIZE = 64; static constexpr size_t SIZE = 64;
static void splat_set(char *dst, const unsigned char value) { 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"); asm("dc zva, %[dst]" : : [dst] "r"(dst) : "memory");
#endif
} }
}; };