(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
m68k/
pr36133.c
       1  /* pr36133.c
       2  
       3     This test ensures that conditional branches can use the condition codes
       4     written by shift instructions, without the need for an extra TST.  */
       5  
       6  /* { dg-do compile }  */
       7  /* { dg-options "-O2" }  */
       8  /* { dg-final { scan-assembler-not "tst" } } */
       9  
      10  void
      11  f (unsigned int a)
      12  {
      13    if (a >> 4)
      14      asm volatile ("nop");
      15    asm volatile ("nop");
      16  }