(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
cris/
pr93372-13.c
       1  /* Check that eliminable compare-instructions are eliminated. */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2" } */
       4  /* { dg-final { scan-assembler-not "\tcmp|\ttest|\tor" } } */
       5  
       6  extern void foo(void);
       7  
       8  void f(long long int a, long long int b)
       9  {
      10    if (a + b == 0)
      11      foo();
      12  }
      13  
      14  void g(long long int a, long long int b)
      15  {
      16    if (a + b >= 0)
      17      foo();
      18  }