(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
sh/
pr55303-3.c
       1  /* Verify that the special case (umin (reg const_int 1)) results in the
       2     expected instruction sequence on SH2A.  */
       3  /* { dg-do compile { target { sh2a } } }  */
       4  /* { dg-options "-O2" } */
       5  /* { dg-final { scan-assembler-times "tst" 1 } } */
       6  /* { dg-final { scan-assembler-times "movrt" 1 } } */
       7  
       8  unsigned int
       9  test_00 (unsigned int a)
      10  {
      11    /* 1x tst
      12       1x movrt  */
      13    return a > 1 ? 1 : a;
      14  }