On Fri, 2017-07-14 at 15:58 -0500, Segher Boessenkool wrote: > Hi Carl, > > On Fri, Jul 14, 2017 at 01:20:32PM -0700, Carl Love wrote: > > --- /dev/null > > +++ b/gcc/testsuite/gcc.target/powerpc/builtins-4-p9-runnable.c > > @@ -0,0 +1,95 @@ > > +/* { dg-do run { target { powerpc64*-*-* && { lp64 && p9vector_hw } } } } > > */ > > powerpc*-*-* instead. > > > +/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { > > "-mcpu=power9" } } */ > > +/* { dg-options "-mcpu=power9 -O2 -mupper-regs-di" } */ > > Does this need to be restricted to 64-bit? Please test.
Segher: I tested with the command: make -k check-gcc RUNTESTFLAGS="powerpc.exp=builtins-4-p9-runnable.c --target_board=unix'{-m64,-m32}' " > out The test passed for -m64 and failed on -m32 Test run by carll on Mon Jul 24 15:44:47 2017 Native configuration is powerpc64le-unknown-linux-gnu === gcc tests === Schedule of variations: unix/-m64 unix/-m32 Running target unix/-m64 Using /usr/share/dejagnu/baseboards/unix.exp as board description file for targe t. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using /home/carll/GCC/gcc-patch-testing/gcc/testsuite/config/default.exp as tool -and-target-specific interface file. Running /home/carll/GCC/gcc-patch-testing/gcc/testsuite/gcc.target/powerpc/power pc.exp ... === gcc Summary for unix/-m64 === # of expected passes 2 Running target unix/-m32 Using /usr/share/dejagnu/baseboards/unix.exp as board description file for targe t. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using /home/carll/GCC/gcc-patch-testing/gcc/testsuite/config/default.exp as tool -and-target-specific interface file. Running /home/carll/GCC/gcc-patch-testing/gcc/testsuite/gcc.target/powerpc/power pc.exp ... === gcc Summary for unix/-m32 === # of unsupported tests 1 === gcc Summary === # of expected passes 2 # of unsupported tests 1 So, I think we need to leave it as: powerpc64*-*-* /* { dg-do run { target { powerpc64*-*-* && { lp64 && p9vector_hw } } } } */ Do you agree? Carl Love