This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, rs6000] Add testcases for vec_cnttz
- From: Carl Love <cel at us dot ibm dot com>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: gcc-patches at gcc dot gnu dot org, David Edelsohn <dje dot gcc at gmail dot com>, Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- Date: Mon, 24 Jul 2017 13:51:20 -0700
- Subject: Re: [PATCH, rs6000] Add testcases for vec_cnttz
- Authentication-results: sourceware.org; auth=none
- References: <1500063632.474.34.camel@us.ibm.com> <20170714205844.GY13471@gate.crashing.org>
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