(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
pru/
qbbs-2.c
       1  /* Test QBBS recognition */
       2  
       3  /* { dg-options "-O1" } */
       4  
       5  /* -O1 in the options is significant.  Without it bit-check-and-branch
       6     operation may not be optimized to QBBS.  */
       7  
       8  unsigned int
       9  test_qbbs_reg (unsigned int a, unsigned int b, unsigned int val)
      10  {
      11    /* { dg-final { scan-assembler "qbbs\\t.L\[0-9\]*, r16, 19" } } */
      12    if (val & (1 << 19))
      13      return a;
      14    return b;
      15  }