mve: Fix vsetq_lane for 64-bit elements with lane 1 [PR 115611]
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr78542.c
blobbae42b653337de77aac6df4f5d1801b0ad2bae7b
1 /* { dg-do run } */
2 /* { dg-additional-options "-w -Wno-psabi" } */
4 typedef unsigned V __attribute__ ((vector_size (16)));
7 foo (unsigned x, V v)
9 do {
10 v %= x;
11 x = 1;
12 } while (v[1]);
13 return v;
16 int
17 main ()
19 V x = foo (5, (V) { 0, 1 });
20 if (x[0] || x[1] || x[2] || x[3])
21 __builtin_abort();
22 return 0;