From 41e44e880417fbca81e755d2f8230540e6b3e32b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 24 Apr 2022 10:55:25 -0700 Subject: clang: Enable altivec again for ppc32 This was disabled for musl issue which is not related to altivec Signed-off-by: Khem Raj (cherry picked from commit 10461fab44ebdcee5e06c2eeb943b4d08f817965) --- classes/clang.bbclass | 4 ---- 1 file changed, 4 deletions(-) (limited to 'classes/clang.bbclass') diff --git a/classes/clang.bbclass b/classes/clang.bbclass index a8f5dbe..6281556 100644 --- a/classes/clang.bbclass +++ b/classes/clang.bbclass @@ -39,10 +39,6 @@ LDFLAGS:append:toolchain-clang = " ${COMPILER_RT} ${LIBCPLUSPLUS}" TUNE_CCARGS:remove:toolchain-clang = "-meb" TUNE_CCARGS:remove:toolchain-clang = "-mel" TUNE_CCARGS:append:toolchain-clang = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endian", " -mlittle-endian", d)}" -# Qemu uses 7400 but fails to emulate VSX/altivec instrs e.g. xor and fails with illegal instructions especially on musl/strspn.c -# Workaround the qemu limitation by disable altivec in code generation, gcc does not use altivec, so code generated with clang is -# superior but sadly qemu starts to puke :(, maybe it will work ok on real hardware !! -TUNE_CCARGS:append:toolchain-clang = "${@bb.utils.contains("TUNE_FEATURES", "ppc7400", " -mno-altivec", "", d)}" # Clang does not yet support big.LITTLE performance tunes, so use the LITTLE for tunes TUNE_CCARGS:remove:toolchain-clang = "-mtune=cortex-a57.cortex-a53 -mtune=cortex-a72.cortex-a53 -mtune=cortex-a15.cortex-a7 -mtune=cortex-a17.cortex-a7 -mtune=cortex-a72.cortex-a35 -mtune=cortex-a73.cortex-a53 -mtune=cortex-a75.cortex-a55 -mtune=cortex-a76.cortex-a55" -- cgit v1.2.3-54-g00ecf