| 1 |
// https://issues.dlang.org/show_bug.cgi?id=19628 |
| 2 |
// { dg-additional-options "-mavx" { target avx_runtime } } |
| 3 |
// { dg-do compile { target { avx_runtime || vect_sizes_16B_8B } } } |
| 4 |
import core.simd; |
| 5 |
|
| 6 |
enum ice19628a = int4.init[0]; |
| 7 |
enum ice19628b = int4.init.array[0]; |
| 8 |
enum ice19628c = (cast(int[4])int4.init.array)[0]; |
| 9 |
enum ice19628d = (cast(int[4])int4.init)[0]; |
| 10 |
|
| 11 |
enum int4 v19628a = int4.init; |
| 12 |
enum idx19628a = v19628a[0]; |
| 13 |
static assert(idx19628a == 0); |
| 14 |
|
| 15 |
enum int[4] v19628b = int4.init.array; |
| 16 |
enum idx19628b = v19628b[0]; |
| 17 |
static assert(idx19628b == 0); |
| 18 |
|
| 19 |
enum int[4] v19628c = cast(int[4])int4.init.array; |
| 20 |
enum idx19628c = v19628c[0]; |
| 21 |
static assert(idx19628c == 0); |
| 22 |
|
| 23 |
enum int[4] v19628d = cast(int[4])int4.init; |
| 24 |
enum idx19628d = v19628d[0]; |
| 25 |
static assert(idx19628d == 0); |
| 26 |
|
| 27 |
immutable int4 v19628e = int4.init; |
| 28 |
immutable idx19628e = v19628e[0]; |
| 29 |
static assert(idx19628e == 0); |
| 30 |
|
| 31 |
immutable int[4] v19628f = int4.init.array; |
| 32 |
immutable idx19628f = v19628f[0]; |
| 33 |
static assert(idx19628f == 0); |
| 34 |
|
| 35 |
immutable int[4] v19628g = cast(int[4])int4.init.array; |
| 36 |
immutable idx19628g = v19628g[0]; |
| 37 |
static assert(idx19628g == 0); |
| 38 |
|
| 39 |
immutable idx19628h = v19628h[0]; |
| 40 |
immutable int[4] v19628h = cast(int[4])int4.init; |
| 41 |
static assert(idx19628h == 0); |