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