[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr16458-2.c
blob95e97de5560a92dc3123644b4872600183980514
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;