1 /* { dg-do run { target powerpc*-*-* } } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec" } */
6 #include "altivec_check.h"
8 extern void abort (void);
10 typedef int v4si
__attribute__ ((vector_size (16)));
12 #define MAGIC_NUMBER 12345
15 int my_array
[4] __attribute__ ((aligned (16)));
17 void initialize (int a
)
19 my_vect
= (v4si
) {0, a
, 2, 3};
20 vec_st (my_vect
, 0, my_array
);
25 if (my_array
[1] != MAGIC_NUMBER
)
31 altivec_check (); /* Exit if hardware doesn't support AltiVec. */
32 initialize (MAGIC_NUMBER
);