1 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* Disable warnings to squelch deprecation message about -maltivec=be. */
4 /* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */
8 static unsigned long long svul[2] __attribute__ ((aligned (16)));
9 static double svd[2] __attribute__ ((aligned (16)));
11 static void check_arrays ()
14 for (i = 0; i < 2; ++i)
16 check (svul[i] == i, "svul");
17 check (svd[i] == i * 1.0, "svd");
23 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
24 vector unsigned long long vul = {1,0};
25 vector double vd = {1.0,0.0};
27 vector unsigned long long vul = {0,1};
28 vector double vd = {0.0,1.0};
31 vec_st (vul, 0, (vector unsigned long long *)svul);
32 vec_st (vd, 0, (vector double *)svd);