Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/pr63764-2.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 } |