This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] vect testsuite check for simd hardware
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 Nov 2004 14:05:16 -0800
- Subject: [patch] vect testsuite check for simd hardware
I'm committing this as obvious. Tested on powerpc64-unknown-linux-gnu
with -m32 and -m64.
2004-11-15 Janis Johnson <janis187@us.ibm.com>
* gcc.dg/vect/tree-vect.h: (check_vect): Test symbols defined for
powerpc*-*-linux*.
Index: gcc.dg/vect/tree-vect.h
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/vect/tree-vect.h,v
retrieving revision 1.2
diff -u -p -r1.2 tree-vect.h
--- gcc.dg/vect/tree-vect.h 13 Nov 2004 13:42:44 -0000 1.2
+++ gcc.dg/vect/tree-vect.h 15 Nov 2004 19:42:24 -0000
@@ -13,7 +13,7 @@ sig_ill_handler (int sig)
void check_vect (void)
{
signal(SIGILL, sig_ill_handler);
-#if defined(__ppc__) || defined(__ppc64__)
+#if defined(__ppc__) || defined(__ppc64__) || defined(__powerpc__) || defined(powerpc)
/* Altivec instruction, 'vor %v0,%v0,%v0'. */
asm volatile (".long 0x10000484");
#elif defined(__i386__) || defined(__x86_64__)