Re: Clang floating-point alignment on powerpc

2020-08-11 Thread George Koehler
On Tue, 11 Aug 2020 03:52:10 -0400 Brad Smith wrote: > It looks like after this went in which is included with 10 that this local > diff can be removed.. > > https://reviews.llvm.org/D71954 Looks correct to me: the new Subtarget.allowsUnalignedFPAccess() check obsoletes the local diff that you

Clang floating-point alignment on powerpc

2020-08-11 Thread Brad Smith
It looks like after this went in which is included with 10 that this local diff can be removed.. https://reviews.llvm.org/D71954 [PowerPC] Change default for unaligned FP access for older subtargets This is a fix for https://bugs.llvm.org/show_bug.cgi?id=40554 Some CPU's trap to the kernel on u

Clang floating-point alignment on powerpc

2019-02-16 Thread Mark Kettenis
As pointed out by George Koehler, clang may generate floating-point load and store instructions that are misaligned. Modern POWER CPUs support this in hardware, allegedly without making things significantly slower. But the traditional PowerPC CPUs that OpenBSD runs on don't support this and gener