libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / movilt.c
blob3ff3b7e80856fdccc0903f74d241b42bd7cbe1d0
1 /* { dg-do run } */
3 typedef int int_t;
5 __attribute__ ((noinline)) int_t
6 movilt (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 (movilt (-1, -1, 12, 23) != 23)
15 return 1;
16 if (movilt (-1, 3, 12, 23) != 12)
17 return 1;
18 if (movilt (1, 3, 12, 23) != 12)
19 return 1;
20 if (movilt (3, 3, 12, 23) != 23)
21 return 1;
22 if (movilt (5, 3, 12, 23) != 23)
23 return 1;
24 if (movilt (3, -1, 12, 23) != 23)
25 return 1;
26 if (movilt (3, 1, 12, 23) != 23)
27 return 1;
28 if (movilt (3, 5, 12, 23) != 12)
29 return 1;
30 return 0;