]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/c-c++-common/pr63764-2.c
PR target/63764
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / pr63764-2.c
1 /* PR target/63764 */
2 /* { dg-do compile } */
3
4 #define A __attribute__((vector_size (4 * sizeof (float))))
5 typedef float V A;
6
7 float
8 fn1 (V *x)
9 {
10 V a = *x;
11 return ((V) a)[0];
12 }
13
14 float
15 fn2 (V *x)
16 {
17 float A a = *x;
18 return ((float A) a)[0];
19 }
20
21 void
22 fn3 (V *x)
23 {
24 V a = *x;
25 a[0] = 0;
26 *x = a;
27 }
28
29 void
30 fn4 (V *x)
31 {
32 float A a = *x;
33 a[0] = 0;
34 *x = a;
35 }