On Mon, Apr 11, 2022 at 08:59:41PM -0300, Alexandre Oliva wrote:
> 
> gcc.target/powerpc/fold-vec-insert-double.c is compiled with -mvsx,
> while the expected asm output depends on target has_arch_pwr7, which
> is tested for without -mvsx.
> 
> In some of our configurations, that have altivec and vsx disabled by
> default, the former defines up to _ARCH_PWR7, while the latter defines
> only up to _ARCH_PWR4, i.e., we compile for power7, and test for
> non-power7.

You cannot use -mvsx if you do not have -mcpu=power7 (or higher).  If
-mvsx is allowed (i.e. when powerpc_vsx_ok is satisfied) you always are
compiling for power7 or higher.

What goes wrong?


Segher

Reply via email to