This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] New rs6000 altivec test
On Fri, Jan 26, 2007 at 09:58:06AM -0800, Josh Conner wrote:
> Janis Johnson wrote:
> > On Thu, Jan 25, 2007 at 11:30:23AM -0800, Josh Conner wrote:
> >> I noticed during some recent work that the function
> >> rs6000_expand_vector_set() in the rs6000 backend is not being exercised
> >> by our testsuite. Attached is a test to do so - verified by running on
> >> a powerpc-apple-darwin machine.
> >
> >> /* { dg-do run { target powerpc*-*-* } } */
> >> /* { dg-require-effective-target powerpc_altivec_ok } */
> >> /* { dg-options "-maltivec" } */
> >
> > Effective target powerpc_altivec_ok says that the compiler can compile
> > AltiVec code, but the target system can't necessarily run it. Include
> > altivec-check.h from that directory and call altivec_check, which will
> > exit the program early if the machine can't run AltiVec code; several
> > other altivec* tests use that scheme.
>
> Thanks - I made that change. Does this look OK for mainline now?
Sure; I think Mike already said as much.
Janis