FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.dg / 20030218-1.c
blob665b6abe47e600d8b4ef353126e22451b1b18115
1 /* { dg-do compile { target powerpc-*-eabi* } } */
2 /* { dg-options "-mcpu=8540" } */
4 /* Test vectors that can interconvert without a cast. */
6 int vint __attribute__((mode(V2SI)));
7 int vshort __attribute__((mode(V4HI)));
8 int vfloat __attribute__((mode(V2SF)));
10 int
11 main (void)
13 vint = vfloat;
14 vshort = vint;
15 vfloat = vshort; /* { dg-error "incompatible types in assignment" } */
16 return 0;