vect: Fix vect_reduction_def check for odd/even widen mult [PR116142]
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / movlfne.c
blob088fa258ced88fcb88c0c69ad18203c20abbbcfe
1 /* { dg-do run } */
3 typedef long int_t;
5 __attribute__ ((noinline)) int_t
6 movlfne (double w, double x, int_t y, int_t z)
8 return w != x ? y : z;
11 int
12 main (void)
14 if (movlfne (-1.0, -1.0, 12L, 23L) != 23L)
15 return 1;
16 if (movlfne (-1.0, 3.0, 12L, 23L) != 12L)
17 return 1;
18 if (movlfne (1.0, 3.0, 12L, 23L) != 12L)
19 return 1;
20 if (movlfne (3.0, 3.0, 12L, 23L) != 23L)
21 return 1;
22 if (movlfne (5.0, 3.0, 12L, 23L) != 12L)
23 return 1;
24 if (movlfne (3.0, -1.0, 12L, 23L) != 12L)
25 return 1;
26 if (movlfne (3.0, 1.0, 12L, 23L) != 12L)
27 return 1;
28 if (movlfne (3.0, 5.0, 12L, 23L) != 12L)
29 return 1;
30 return 0;