PR tree-optimization/86401
[official-gcc.git] / gcc / testsuite / c-c++-common / pr63764-2.c
blob6bbf6611e6c0e5bad764a884ea786166f5308cfe
1 /* PR target/63764 */
2 /* { dg-do compile } */
4 #define A __attribute__((vector_size (4 * sizeof (float))))
5 typedef float V A;
7 float
8 fn1 (V *x)
10 V a = *x;
11 return ((V) a)[0];
14 float
15 fn2 (V *x)
17 float A a = *x;
18 return ((float A) a)[0];
21 void
22 fn3 (V *x)
24 V a = *x;
25 a[0] = 0;
26 *x = a;
29 void
30 fn4 (V *x)
32 float A a = *x;
33 a[0] = 0;
34 *x = a;