]>
Commit | Line | Data |
---|---|---|
4bfc4585 VG |
1 | /* Reduced version of c-c++-common/torture/builtin-convertvector-1.c. */ |
2 | /* This should NOT ICE */ | |
3 | ||
4 | /* { dg-do compile } */ | |
5 | ||
6 | typedef long b __attribute__((vector_size(256 * sizeof(long)))); | |
7 | typedef double c __attribute__((vector_size(256 * sizeof(double)))); | |
8 | int d; | |
9 | void e(b *f, c *g) { *g = __builtin_convertvector(*f, c); } | |
10 | void h() { | |
11 | struct { | |
12 | b i; | |
13 | } j; | |
14 | union { | |
15 | c i; | |
16 | double a[6]; | |
17 | } k; | |
18 | e(&j.i, &k.i); | |
19 | if (k.a[d]) | |
20 | for (;;) | |
21 | ; | |
22 | } |