This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] New rs6000 altivec test


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]