Condition some Power tests on powerpc_fprs and powerpc_altivec_ok

Joseph S. Myers joseph@codesourcery.com
Wed Jun 4 18:16:00 GMT 2008


On Wed, 4 Jun 2008, Andrew Pinski wrote:

> On Wed, Jun 4, 2008 at 10:53 AM, Joseph S. Myers
> <joseph@codesourcery.com> wrote:
> 
> > Index: g++.dg/other/spu2vmx-1.C
> > ===================================================================
> > --- g++.dg/other/spu2vmx-1.C    (revision 136352)
> > +++ g++.dg/other/spu2vmx-1.C    (working copy)
> > @@ -1,5 +1,6 @@
> >  /* { dg-do compile { target powerpc*-*-* } } */
> >  /* { dg-require-effective-target powerpc_spu } */
> > +/* { dg-require-effective-target powerpc_altivec_ok } */
> >  /* { dg-options "-maltivec" } */
> 
> powerpc_spu should be a subset of powerpc_altivec_ok.
> As there are no Cell processors which don't also have VMX and there
> never can be any because of the definition of the Cell architecture.

So check_effective_target_powerpc_spu should call 
check_effective_target_powerpc_altivec_ok?

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list