public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC 7 on ppc64le does not recognize vec_xl_be?
@ 2019-11-16  1:07 Jeffrey Walton
  2019-11-16 11:25 ` Segher Boessenkool
  0 siblings, 1 reply; 23+ messages in thread
From: Jeffrey Walton @ 2019-11-16  1:07 UTC (permalink / raw)
  To: gcc-help

Hi Everyone,

I have a Travis job failing on ppc64le:
https://travis-ci.org/noloader/cryptopp-pem/jobs/612654182 .

Compiling a source file with Power9 flags:

    g++ -DNDEBUG -g2 -O3 -mcpu=power9 -maltivec -c ppc_power9.cpp

That includes a header with this function:

    inline uint32x4_p VecLoadBE(const byte src[16])
    {
    #if defined(_ARCH_PWR9)
        return (uint32x4_p)vec_xl_be(0, CONST_V8_CAST(src));
    #elif (BIG_ENDIAN)
        return (uint32x4_p)VecLoad(src);
    #else
        return (uint32x4_p)VecReverse(VecLoad(src));
    #endif
}

Results in:

    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));

According to the GCC docs vec_xl_be is available with ISA 3.0:
https://gcc.gnu.org/onlinedocs/gcc/PowerPC-AltiVec-Built-in-Functions-Available-on-ISA-3_002e0.html

Does someone know why the compile is failing?

Thanks in advance.

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2019-11-18 20:20 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-16  1:07 GCC 7 on ppc64le does not recognize vec_xl_be? Jeffrey Walton
2019-11-16 11:25 ` Segher Boessenkool
2019-11-16 11:45   ` Jeffrey Walton
2019-11-16 14:26     ` Segher Boessenkool
2019-11-16 14:47       ` Jeffrey Walton
2019-11-16 17:41         ` Segher Boessenkool
2019-11-16 18:26           ` Jonathan Wakely
2019-11-16 21:25             ` Jeffrey Walton
2019-11-16 22:19               ` Segher Boessenkool
2019-11-16 22:26                 ` Jeffrey Walton
2019-11-16 22:34                   ` Jonathan Wakely
2019-11-18 18:29                   ` Richard Sandiford
2019-11-18 19:10                     ` Segher Boessenkool
2019-11-18 20:05                     ` Martin Sebor
2019-11-18 20:20                       ` Segher Boessenkool
2019-11-16 22:33               ` Jonathan Wakely
2019-11-16 22:40                 ` Jeffrey Walton
2019-11-16 22:43                   ` Jonathan Wakely
2019-11-16 22:52                   ` Segher Boessenkool
2019-11-16 22:56                     ` Jeffrey Walton
2019-11-16 22:58                       ` Jonathan Wakely
2019-11-16 15:24       ` Xi Ruoyao
2019-11-16 17:47         ` Segher Boessenkool

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).