Hi,
A note on lib-arm64.c: it would be much more efficient
(instruction wise) to use unions instead of memcpy:
typedef union {
struct { uint64_t x0, x1; };
long double f;
} u128_t;
long double some_func(long double f)
{
u128_t x;
x.f = f; // was: memcpy(&x, &f, 16);
... work on x.x1/x2
return x.f; // was: memcpy(&f, &x, 16);
}
--gr
On 05.02.2026 11:51, Aleksi Hannula wrote:
From: Aleksi Hannula <[email protected]>
This is a partial implementation of an assembler backend targeting
ARM64. It is by no means complete, but enough is implemented to compile
musl 1.2.5.
Aleksi Hannula (3):
arm64-link: Implement TSTBR and CONDBR relocs
asm: Pass ASMOperand to asm_subst_operand backend
Implement ARM64 assembler
arm-asm.c | 2 +-
arm64-asm.c | 2581 ++++++++++++++++++++++++++++++++++++++++++++++++-
arm64-link.c | 18 +
arm64-tok.h | 247 +++++
i386-asm.c | 2 +-
riscv64-asm.c | 4 +-
tcc.h | 2 +-
tccasm.c | 28 +-
tccpp.c | 4 +-
tcctok.h | 6 +-
10 files changed, 2868 insertions(+), 26 deletions(-)
create mode 100644 arm64-tok.h
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel