GCC 7 on ppc64le does not recognize vec_xl_be?
Jeffrey Walton
noloader@gmail.com
Sat Nov 16 14:47:00 GMT 2019
On Sat, Nov 16, 2019 at 9:26 AM Segher Boessenkool
<segher@kernel.crashing.org> 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@kernel.crashing.org> 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
More information about the Gcc-help
mailing list