]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
altivec-vec-merge.c: Make test usable on GNU/Linux targets and on hardware without...
authorJanis Johnson <janis187@us.ibm.com>
Tue, 24 May 2005 21:50:00 +0000 (21:50 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Tue, 24 May 2005 21:50:00 +0000 (21:50 +0000)
* gcc.dg/altivec-vec-merge.c: Make test usable on GNU/Linux targets
and on hardware without VMX support.

From-SVN: r100120

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/altivec-vec-merge.c

index 72efaa19ce562d5a78a92f344103a9fc2a60200f..c3d153f6cb9179e390b2bd38470aba1b038e56a8 100644 (file)
@@ -1,5 +1,8 @@
 2005-05-24  Janis Johnson  <janis187@us.ibm.com>
 
+       * gcc.dg/altivec-vec-merge.c: Make test usable on GNU/Linux targets
+       and on hardware without VMX support.
+
        * gcc.dg/altivec-vec-merge.c: Renamed from ppc-vec-merge.c.
 
        * gcc.dg/ppc64-abi-2.c: Remove code that is now invalid.
index 9eef9847a82999a7caf3fea0bb0819302f3bbeca..19a682facea90daa7395919dc801183a6f1f0dd5 100644 (file)
@@ -1,5 +1,8 @@
 /* { dg-do run { target powerpc*-*-* } } */
-/* { dg-options "-faltivec -O2" } */
+/* { dg-options "-maltivec -O2" } */
+
+#include <altivec.h>
+#include "altivec_check.h"
 
 int printf(const char * , ...);
 extern void abort();
@@ -595,6 +598,8 @@ if (1){
 int main(int argc, char **argv)
 {
     char toto[32] __attribute__((aligned(16)));
+
+    altivec_check ();  /* Exit if hardware doesn't support AltiVec.  */
     foo(toto, toto, 0, 0);
     return 0;
 }