GCC 7 on ppc64le does not recognize vec_xl_be?

Segher Boessenkool segher@kernel.crashing.org
Sat Nov 16 11:25:00 GMT 2019


Hi Jeffrey,

On Fri, Nov 15, 2019 at 08:05:57PM -0500, Jeffrey Walton wrote:
>     g++ -DNDEBUG -g2 -O3 -mcpu=power9 -maltivec -c ppc_power9.cpp

You forgot -Wall -Wextra, or at the very least -Wall.  It probably will
help you find this problem., too.

-g2 is the default, and -maltivec is implied by -mcpu=power9.

Why do you disable assertions (-DNDEBUG)?

>     ppc_simd.h: In function ‘uint32x4_p VecLoadBE(const byte*)’:
>     ppc_simd.h:466:24: error: ‘vec_xl_be’ was not declared in this scope
>          return (uint32x4_p)vec_xl_be(0, CONST_V8_CAST(src));

You didn't #include <altivec.h> in this scope, or you have undefined
__VSX__, or undefined something else; it is impossible for us to tell.

Always enable warnings, it helps.


Segher



More information about the Gcc-help mailing list