(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
pr46091-4.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2" } */
       3  /* { dg-additional-options "-mregparm=2" { target ia32 } } */
       4  
       5  int test_1 (int x, int n)
       6  {
       7    x &= ~(0x01 << n);
       8  
       9    return x;
      10  }
      11  
      12  /* { dg-final { scan-assembler "btr" } } */
      13  
      14  int test_2 (int x, int n)
      15  {
      16    x |= (0x01 << n);
      17  
      18    return x;
      19  }
      20  
      21  /* { dg-final { scan-assembler "bts" } } */
      22  
      23  int test_3 (int x, int n)
      24  {
      25    x ^= (0x01 << n);
      26  
      27    return x;
      28  }
      29  
      30  /* { dg-final { scan-assembler "btc" } } */