Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/pr91504.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-optimized-raw" } */ static inline unsigned deposit32(unsigned value, int start, int length, unsigned fieldval) { unsigned mask = (~0U >> (32 - length)) << start; return (value & ~mask) | ((fieldval << start) & mask); } unsigned foo(unsigned value) { return deposit32(value, 10, 1, 1); } /* { dg-final { scan-tree-dump-not "bit_and_expr" "optimized" } } */ /* { dg-final { scan-tree-dump-not "bit_xor_expr" "optimized" } } */ /* { dg-final { scan-tree-dump-not "bit_not_expr" "optimized" } } */