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