Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr16458-1.c
blob45b8c75c0690084bda301a8e161eaee9cdef1c79
1 /* Test cse'ing of unsigned compares. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 /* { dg-final { scan-assembler-not "cmpw" } } */
6 /* { dg-final { scan-assembler-times "cmplw" 1 } } */
8 unsigned int a, b;
10 int
11 foo (void)
13 if (a == b) return 1;
14 if (a > b) return 2;
15 if (a < b) return 3;
16 if (a != b) return 4;
17 return 0;