(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
pru/
qbbc-2.c
       1  /* Test QBBC 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 QBBC.  */
       7  
       8  unsigned int
       9  test_qbbc_reg (unsigned int a, unsigned int b, unsigned int val)
      10  {
      11    /* { dg-final { scan-assembler "qbbc\\t.L\[0-9\]*, r16, 19" } } */
      12    if (!(val & (1 << 19)))
      13      return a;
      14    return b;
      15  }