Latest Results
POWER: pass assembler CPU flags for more cores with clang on FreeBSD
clang with -fno-integrated-as does not translate -mcpu into CPU
selection flags for the external assembler the way GCC's ASM_CPU_SPEC
does, so GNU as runs with bare defaults and rejects AltiVec/VSX
mnemonics, both in the hand-written kernels and in clang's own
vectorized output. This is already handled for POWER9/POWER10 via
-Wa,-mpwr10; do the equivalent for the remaining 64-bit cores:
POWER8: -Wa,-mpwr8
POWER6: -Wa,-mpwr6 -Wa,-maltivec
PPC970: -Wa,-mpwr4 -Wa,-maltivec
The POWER6/PPC970 spellings match what GCC passes to the assembler
for -mcpu=power6 and -mcpu=970. Note a lone -Wa,-maltivec is not
enough: an explicit -m option replaces the assembler's implicit
64-bit default, making it reject even lwa/mulld.
Tested on FreeBSD/powerpc64 (big-endian) with clang 19.1.7:
TARGET=PPC970 and TARGET=POWER8 both build and pass the BLAS test
suite.pkubaj:ppc64-clang-freebsd-fix Latest Branches
0%
0%
pkubaj:ppc64-clang-freebsd-fix 0%
martin-frbg:fix-lapack-signatures © 2026 CodSpeed Technology