forked from OSchip/llvm-project
[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:
parent
5ff992bca2
commit
e8572aca0c
|
@ -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
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue