From 79d6ac719042371d255ed1cf412e3232d13d1e56 Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 25 Mar 2026 16:36:29 +0100 Subject: aarch64 struct arg passing ABI wip --- src/t_x86-64_sysv.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/t_x86-64_sysv.c') diff --git a/src/t_x86-64_sysv.c b/src/t_x86-64_sysv.c index 852aa24..96f40d6 100644 --- a/src/t_x86-64_sysv.c +++ b/src/t_x86-64_sysv.c @@ -40,12 +40,15 @@ classifyarr(uchar cls[2], Type ty, uint off) return !!cls[0] + !!cls[1]; } +/* XXX types with alignment >= 16 */ + static int classify(uchar cls[2], const TypeData *td, uint off) { uint siz = alignup(td->siz, 4); if (siz > 16) /* MEMORY */ return 0; + assert(isaggt(td->t)); for (int i = 0; i < td->nmemb; ++i) { FieldData *fld = &td->fld[i].f; uint align = typealign(fld->t); -- cgit v1.2.3