OSDN Git Service

gcc:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / altivec-vec-merge.c
index 9eef984..19a682f 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;
 }