Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/ppc-compare-1.c

raw
1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-options "-O2" } */
3
4 /* { dg-final { scan-assembler-not "cmpw" } } */
5
6 /* Origin:Pete Steinmetz <[email protected]> */
7
8 /* PR 16458: Extraneous compare. */
9
10 int foo (unsigned a, unsigned b)
11 {
12 if (a == b) return 1;
13 if (a > b) return 2;
14 if (a < b) return 3;
15 return 0;
16 }