1 /* { dg-do compile { target powerpc-*-eabi* } } */
2 /* { dg-options "-mspe=yes -mfloat-gprs=single" } */
4 /* Test vectors that can interconvert without a cast. */
7 int vint __attribute__((vector_size (8)));
8 short vshort __attribute__((vector_size (8)));
9 float vfloat __attribute__((vector_size (8)));
14 __ev64_opaque__ george = { 1, 2 }; /* { dg-error "opaque vector types cannot be initialized" } */
18 vfloat = vshort; /* { dg-error "incompatible types when assigning" } */
20 /* Just because this is a V2SI, it doesn't make it an opaque. */
21 vint = vshort; /* { dg-message "note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts" } */
22 /* { dg-error "incompatible types when assigning" "" { target *-*-* } 21 } */