(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
fold-ior-5.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-tree-optimized" } */
       3  
       4  unsigned int test_ior(unsigned char i)
       5  {
       6    return (i | (i<<16)) | ((i<<24) | (i<<8));
       7  }
       8  
       9  unsigned int test_xor(unsigned char i)
      10  {
      11    return (i ^ (i<<16)) ^ ((i<<24) ^ (i<<8));
      12  }
      13  
      14  /* { dg-final { scan-tree-dump-not " \\^ " "optimized" } } */
      15  /* { dg-final { scan-tree-dump-not " \\| " "optimized" } } */
      16  /* { dg-final { scan-tree-dump-times " \\* 16843009" 2 "optimized" } } */
      17