Fix gimplification of ordering comparisons of arrays of bytes
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / movigtu.c
blobd620e8d5f454655bdcd01c29497a8d5d81caad9c
1 /* { dg-do run } */
3 typedef unsigned int int_t;
5 __attribute__ ((noinline)) int_t
6 movigtu (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 (movigtu (-1, -1, 12, 23) != 23)
15 return 1;
16 if (movigtu (-1, 3, 12, 23) != 12)
17 return 1;
18 if (movigtu (1, 3, 12, 23) != 23)
19 return 1;
20 if (movigtu (3, 3, 12, 23) != 23)
21 return 1;
22 if (movigtu (5, 3, 12, 23) != 12)
23 return 1;
24 if (movigtu (3, -1, 12, 23) != 23)
25 return 1;
26 if (movigtu (3, 1, 12, 23) != 12)
27 return 1;
28 if (movigtu (3, 5, 12, 23) != 23)
29 return 1;
30 return 0;