OSDN Git Service

* builtins.def: Defome atan, atanf, atanl, tan, tanf and tanl
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20030218-1.c
1 /* { dg-do compile { target powerpc-*-eabi* } } */
2 /* { dg-options "-mcpu=8540" } */
3
4 /* Test vectors that can interconvert without a cast.  */
5
6 typedef int __attribute__((mode(V2SI))) __ev64_opaque__;
7
8 __ev64_opaque__ opp;
9 int vint   __attribute__((mode(V2SI)));
10 int vshort __attribute__((mode(V4HI)));
11 int vfloat __attribute__((mode(V2SF)));
12
13 int
14 main (void)
15 {
16   __ev64_opaque__ george = { 1, 2 }; /* { dg-error "opaque vector types cannot be initialized" } */
17
18   opp = vfloat;
19   vshort = opp;
20   vfloat = vshort; /* { dg-error "incompatible types in assignment" } */
21
22   /* Just because this is a V2SI, it doesn't make it an opaque.  */
23   vint = vshort; /* { dg-error "incompatible types in assignment" } */
24
25   return 0;
26 }