This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] New rs6000 altivec test
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Josh Conner <jconner at apple dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 25 Jan 2007 16:53:29 -0800
- Subject: Re: [PATCH] New rs6000 altivec test
- References: <45B9054F.2040900@apple.com>
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.
Janis