On Tue, May 19, 2020 at 02:41:45PM -0700, Douglas B Rupp wrote: > > 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.
This is a compile test, so it does not matter at all what the kernel is doing or not doing. And the -mcpu=power8 flag should enable altivec. Apparently it doesn't for you, but why is that? This shouldn't be fixed by whack-a-mole on individual testcases. Segher