acompiled

The catalog contains seeded project examples. Your workspace stores your own projects and conversations.

yuki-ito/neon-mem

Public
Star6

memcpy and memset for AArch64, from overlapping loads and LDP/STP Q pairs. Every build checks every size up to 1,024 bytes at all 64 alignments.

Code
Blame·3 commits across 29 linesoldernewer
Size test: every size from 0 to 1,024 at all 64 alignmentsAug 25 1# Verified builds for neon-mem. Both routines are assembled for AArch64, then
2# the size test runs under Linux on an AArch64 CPU or qemu-aarch64.
4[project]
5isa = "arm64"
6assembler = "gas"
7target = "AArch64 Linux, AAPCS64"
8
9[[step]]
10name = "assemble memcpy"
11run = ["clang", "--target=aarch64-linux-gnu", "-c", "-g", "-o", "build/memcpy.o", "src/memcpy.S"]
12
memset, built the same wayAug 18 13[[step]]
14name = "assemble memset"
15run = ["clang", "--target=aarch64-linux-gnu", "-c", "-g", "-o", "build/memset.o", "src/memset.S"]
16
18name = "link the size test"
19run = ["clang", "--target=aarch64-linux-gnu", "-O2", "-ffreestanding", "-nostdlib", "-static", "-fuse-ld=lld", "-o", "build/sizes", "test/sizes.c", "build/memcpy.o", "build/memset.o"]
20
21[[step]]
22name = "every size and alignment"
23on = "linux"
24run = ["./build/sizes"]
25expect = "131200 calls, 0 failures"
26
28path = "build/memcpy.o"
memset, built the same wayAug 18 29paths = ["build/memset.o"]