Debian Codegraph @

gcc/testsuite/g++.dg/ext/vector27.C

raw
1 /* { dg-do compile } */
2
3 typedef int veci __attribute__ ((vector_size (4 * sizeof (int))));
4 typedef float vecf __attribute__ ((vector_size (4 * sizeof (float))));
5
6 void f (veci *a, veci *b, int c)
7 {
8 *a = !*a || *b < ++c;
9 }
10 void g (vecf *a, vecf *b)
11 {
12 *a = (*a < 1 && !(*b > 2)) ? *a + *b : 3;
13 }