Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr87954.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-options "-O2 -fdump-tree-optimized" } */ #define __GFP_DMA 1u #define __GFP_RECLAIM 0x10u #define KMALLOC_DMA 2 #define KMALLOC_RECLAIM 1 unsigned int imul(unsigned int flags) { int is_dma, type_dma, is_rec; is_dma = !!(flags & __GFP_DMA); type_dma = is_dma * KMALLOC_DMA; is_rec = !!(flags & __GFP_RECLAIM); return type_dma + (is_rec * !is_dma) * KMALLOC_RECLAIM; } /* { dg-final { scan-tree-dump-times { \* } 1 "optimized" } } */