Re: GCC 7 on ppc64le does not recognize vec_xl_be?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 16, 2019 at 9:26 AM Segher Boessenkool
<segher@xxxxxxxxxxxxxxxxxxx> wrote:
>
> On Sat, Nov 16, 2019 at 06:44:35AM -0500, Jeffrey Walton wrote:
> > On Sat, Nov 16, 2019 at 6:25 AM Segher Boessenkool
> > <segher@xxxxxxxxxxxxxxxxxxx> wrote:
> > > ...
> If you still think it is a compiler bug, please file a bug in bugzilla,
> with a testcase that reproduces the problem, so that we can investigate
> (instead of guess).

If you can find a test rig with Power9 and GCC 7, then I believe this
is your reproducer:

$ cat test.cxx
// g++ -g2 -O3 -mcpu=power9 -maltivec test.cxx
#include <altivec>
int main(int argc, char* argv[])
{
#if defined(_ARCH_PWR9)
    __vector unsigned char v = vec_xl_be(0, (unsigned char*)argv[0]);
#else
    int XXX[-1];
#endif
    return 0
}

It looks like Travis provides GCC 7.4; see
https://travis-ci.org/noloader/cryptopp/jobs/612762432 .

Jeff



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux