Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gdc.dg / simd19630b.d
blob4f09597ffebc50039bd9a97d75773d114176e177
1 // https://issues.dlang.org/show_bug.cgi?id=19630
2 // { dg-additional-options "-mavx" { target avx_runtime } }
3 // { dg-do compile { target { avx_runtime || vect_sizes_16B_8B } } }
4 import core.simd;
6 enum fail19630a = int4.init[1..2];
7 // { dg-error "'__vector\\\(int\\\[4\\\]\\\)' cannot be sliced with '\\\[\\\]'" "" { target *-*-* } .-1 }
8 enum fail19630e = int4(0)[1..2];
9 // { dg-error "'__vector\\\(int\\\[4\\\]\\\)' cannot be sliced with '\\\[\\\]'" "" { target *-*-* } .-1 }
11 enum int4 v19630a = int4.init;
12 enum slice19630a = v19630a[1..2];
13 // { dg-error "'__vector\\\(int\\\[4\\\]\\\)' cannot be sliced with '\\\[\\\]'" "" { target *-*-* } .-1 }
15 enum int4 v19630e = int4(0);
16 enum slice19630e = v19630e[1..2];
17 // { dg-error "'__vector\\\(int\\\[4\\\]\\\)' cannot be sliced with '\\\[\\\]'" "" { target *-*-* } .-1 }