mve: Fix vsetq_lane for 64-bit elements with lane 1 [PR 115611]
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / addlle.c
blob108e0725e6c963effe48cf49672e9cbe8f62dd42
1 /* { dg-do run } */
3 typedef long int_t;
5 __attribute__ ((noinline)) int_t
6 addlle (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 (addlle (-1L, -1L, 12L, 23L) != 35L)
15 return 1;
16 if (addlle (-1L, 3L, 12L, 23L) != 35L)
17 return 1;
18 if (addlle (1L, 3L, 12L, 23L) != 35L)
19 return 1;
20 if (addlle (3L, 3L, 12L, 23L) != 35L)
21 return 1;
22 if (addlle (5L, 3L, 12L, 23L) != 12L)
23 return 1;
24 if (addlle (3L, -1L, 12L, 23L) != 12L)
25 return 1;
26 if (addlle (3L, 1L, 12L, 23L) != 12L)
27 return 1;
28 if (addlle (3L, 5L, 12L, 23L) != 35L)
29 return 1;
30 return 0;