(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
cris/
pr93372-5.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" { xfail *-*-* } } } */
       5  /* { dg-final { scan-assembler-not "\tnot" { xfail cc0 } } } */
       6  /* { dg-final { scan-assembler-not "\tlsr" { xfail cc0 } } } */
       7  
       8  int f(long long int a, long long int b, int *d)
       9  {
      10    long long int c = a - b;
      11  
      12    *d = (c == 0LL);
      13  
      14    /* See pr93372-2.c; we have the same problem for DImode, but it's
      15       worsened by the generic double-word "optimizations"; or:ing
      16       together the DI parts and then testing the result for the equality
      17       test.  */
      18    return c >= 0LL;
      19  }