[PATCH] Tweak some powerpc tests for altivec_ok and vsx_ok

Douglas B Rupp rupp@adacore.com
Tue May 19 21:41:45 GMT 2020


On 5/19/20 1:53 PM, Segher Boessenkool wrote:
> How can altivec not be supported when you use -mcpu=power8?
>
For the test in question: builtins-1-be-folded.c:

The VxWorks header file altivec.h is included by builtins-1.fold.h

and the error is:

altivec.h:34:2: error: #error Use the "-maltivec" flag to enable PowerPC 
AltiVec support

On VxWorks the kernel has to be configured for altivec regardless of the 
-mcpu switch, and for unrelated reasons we cannot configure in altivec 
at this time for our nightly testing.



More information about the Gcc-patches mailing list