/* { dg-do compile } */ /* { dg-options "-O2" } */ int f(int a, int b) { if(ab) return -1; return 0; } /* We should optimize away the second cmp. */ /* { dg-final { scan-assembler-times "cmp\tw" 1 } } */