c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vsx-7.c
blob6d081bd471586d5a5f80ae27c917ee01f464d123
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-options "-mvsx" } */
3 /* { dg-require-effective-target powerpc_vsx } */
5 #include <altivec.h>
7 vector float *vecfloat;
8 vector double *vecdouble;
10 int main2 ()
13 *vecdouble++ = vec_unpackl(vecfloat[0]);
14 *vecdouble++ = vec_unpackh(vecfloat[0]);
16 return 0;
19 /* Expected results:
20 vec_unpackl xvcvspdp
21 vec_unpackh xvcvspdp
24 /* { dg-final { scan-assembler-times "xvcvspdp" 2 } } */