1/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ 2/* { dg-options "-O2" } */ 3 4/* { dg-final { scan-assembler-not "cmpw" } } */ 5 6/* Origin:Pete Steinmetz <steinmtz@us.ibm.com> */ 7 8/* PR 16458: Extraneous compare. */ 9 10int 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} 17