Re: Question on BIGGEST_ALIGNMENT in GCC on NetBSD/m68k
John Paul Adrian Glaubitz <[email protected]> Mon, 26 May 2025 20:23:07 +0200
| Newsgroups | gmane.os.netbsd.ports.m68k,gmane.linux.debian.ports.68k,gmane.linux.ports.m68k |
|---|---|
| Message-ID | <e22c54a868bb70825aa3f91084742fded97470d6.camel@physik.fu-berlin.de> |
Hi Jeff, On Mon, 2025-05-26 at 14:16 -0400, Jeffrey Walton wrote: > I don't know about the 64 byte alignment on NetBSD. Maybe it was > copied/pasted/modified from amd64? amd64 has a BIGGEST_ALIGNMENT of 64 > due to AVX512. Prior to that, I believe amd64 had a BIGGEST_ALIGNMENT > of 32 due to AVX. (These were due to the aligned loads, like > _mm256_load_epi32 (32-byte requirement) or _mm512_load_epi32 (64-byte > requirement)). > > For PowerPC with Altivec, I believe BIGGEST_ALIGNMENT should be 16. > > I don't know if __ALTIVEC__ plays a part in BIGGEST_ALIGNMENT. That > is, should BIGGEST_ALIGNMENT be 4 (for int) or 8 (for doubles) unless > __ALTIVEC__ is defined; and if __ALTIVEC__ is defined, then > BIGGEST_ALIGNMENT should be 16. The alignment is specified in bits here, not bytes. Hence a BIGGEST_ALIGNMENT of 64 means 8 bytes, not 64 bytes. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913