(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
combine_bfi_1.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2" } */
       3  
       4  int
       5  f1 (int x, int y)
       6  {
       7    return (x & ~0x0ffff00) | ((y << 8) & 0x0ffff00);
       8  }
       9  
      10  int
      11  f2 (int x, int y)
      12  {
      13    return (x & ~0x0ff000) | ((y & 0x0ff) << 12);
      14  }
      15  
      16  int
      17  f3 (int x, int y)
      18  {
      19    return (x & ~0xffff) | (y & 0xffff);
      20  }
      21  
      22  int
      23  f4 (int x, int y)
      24  {
      25    return (x & ~0xff) | (y & 0xff);
      26  }
      27  
      28  long long
      29  f5 (long long x, long long y)
      30  {
      31    return (x & ~0xffffffffull) | (y & 0xffffffff);
      32  }
      33  
      34  /* { dg-final { scan-assembler-times {\tbfi\t} 5 } } */