1 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */
7 static unsigned long long svul
[2] __attribute__ ((aligned (16)));
8 static double svd
[2] __attribute__ ((aligned (16)));
13 for (i
= 0; i
< 2; ++i
)
22 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
23 vector
unsigned long long evul
= {1,0};
24 vector
double evd
= {1.0,0.0};
26 vector
unsigned long long evul
= {0,1};
27 vector
double evd
= {0.0,1.0};
30 vector
unsigned long long vul
;
36 vul
= vec_ldl (0, (vector
unsigned long long *)svul
);
37 vd
= vec_ldl (0, (vector
double *)svd
);
39 for (i
= 0; i
< 2; ++i
)
41 check (vul
[i
] == evul
[i
], "vul");
42 check (vd
[i
] == evd
[i
], "vd" );