mve: Fix vsetq_lane for 64-bit elements with lane 1 [PR 115611]
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / movileu.c
blobead65551fb39d3f70172f5a4ef1e4ae2266384b7
1 /* { dg-do run } */
3 typedef unsigned int int_t;
5 __attribute__ ((noinline)) int_t
6 movileu (int_t w, int_t x, int_t y, int_t z)
8 return w <= x ? y : z;
11 int
12 main (void)
14 if (movileu (-1, -1, 12, 23) != 12)
15 return 1;
16 if (movileu (-1, 3, 12, 23) != 23)
17 return 1;
18 if (movileu (1, 3, 12, 23) != 12)
19 return 1;
20 if (movileu (3, 3, 12, 23) != 12)
21 return 1;
22 if (movileu (5, 3, 12, 23) != 23)
23 return 1;
24 if (movileu (3, -1, 12, 23) != 12)
25 return 1;
26 if (movileu (3, 1, 12, 23) != 23)
27 return 1;
28 if (movileu (3, 5, 12, 23) != 12)
29 return 1;
30 return 0;