https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70957

--- Comment #3 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Configuration for the two compilers used:

$GCC_SRC/configure --enable-__cxa_atexit
--enable-languages=c,c++,fortran,objc,obj-c++,go --with-cpu=power7
--disable-libsanitizer --with-gmp=/home/wschmidt/gcc-libs/gcc-host-libs-ppc64
--without-ppl --without-cloog --prefix=$GCC_INSTALL --enable-lto

with --disable-bootstrap for the debug compiler.  No change in option flags
during compilation.

wschmidt@bns:~/src> setgcc test debug
GCC_SRC = /home/wschmidt/gcc/gcc-mainline-test
GCC_BUILD = /home/wschmidt/gcc/build/gcc-mainline-test-debug
GCC_INSTALL= /home/wschmidt/gcc/install/gcc-mainline-test-debug
wschmidt@bns:~/src> $GCC_INSTALL/bin/gcc -O0 -mcpu=power9 vsx-elemrev-4.c -S
wschmidt@bns:~/src> grep -c lxvx vsx-elemrev-4.s
40
wschmidt@bns:~/src> grep -c stxvx vsx-elemrev-4.s
40
wschmidt@bns:~/src> setgcc test
GCC_SRC = /home/wschmidt/gcc/gcc-mainline-test
GCC_BUILD = /home/wschmidt/gcc/build/gcc-mainline-test
GCC_INSTALL= /home/wschmidt/gcc/install/gcc-mainline-test
wschmidt@bns:~/src> $GCC_INSTALL/bin/gcc -O0 -mcpu=power9 vsx-elemrev-4.c -S
vsx-elemrev-4.c: In function ‘foo21’:
vsx-elemrev-4.c:137:3: error: invalid parameter combination for AltiVec
intrinsic
   vsll = vec_xl (0, sllp);
   ^~~~
vsx-elemrev-4.c: In function ‘foo22’:
vsx-elemrev-4.c:142:3: error: invalid parameter combination for AltiVec
intrinsic
   vull = vec_xl (0, ullp);
   ^~~~
vsx-elemrev-4.c: In function ‘foo31’:
vsx-elemrev-4.c:187:3: error: invalid parameter combination for AltiVec
intrinsic
   vec_xst (vsll, 0, sllp);
   ^~~~~~~
vsx-elemrev-4.c: In function ‘foo32’:
vsx-elemrev-4.c:192:3: error: invalid parameter combination for AltiVec
intrinsic
   vec_xst (vull, 0, ullp);
   ^~~~~~~
wschmidt@bns:~/src>

Reply via email to