* gcc.dg/const-elim-1.c: Remove xfail for xtensa-*-*.
[official-gcc.git] / gcc / testsuite / gcc.dg / ppc-compare-1.c
blobb5670ab53b1bbf0e076f47f6d0a9e97addd7271d
1 /* { dg-do compile { target powerpc64-*-* } } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-options "-O2" } */
5 /* { dg-final { scan-assembler-not "cmpw" } } */
7 /* Origin:Pete Steinmetz <steinmtz@us.ibm.com> */
9 /* PR 16458: Extraneous compare. */
11 int foo (unsigned a, unsigned b)
13 if (a == b) return 1;
14 if (a > b) return 2;
15 if (a < b) return 3;
16 return 0;