(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
csky/
cse-cc.c
       1  /* { dg-do compile } */
       2  /* { dg-csky-options "-O2" } */
       3  
       4  /* Test that the two comparisons are combined.  This was formerly handled
       5     by a no-longer-present target-specific pass and is now supposed to
       6     be handled by generic CSE.  */
       7  
       8  int e1, e2;
       9  
      10  void func (int a, int b, int c, int d, int f, int g)
      11  {
      12    e1 = a > b ? f : g;
      13    e2 = a > b ? c : d;
      14  
      15    return;
      16  }
      17  
      18  /* { dg-final { scan-assembler-times "cmp" 1 } } */
      19