1 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 #define __GFP_RECLAIM 0x10u
7 #define KMALLOC_RECLAIM 1
10 imul(unsigned int flags
)
12 int is_dma
, type_dma
, is_rec
;
14 is_dma
= !!(flags
& __GFP_DMA
);
15 type_dma
= is_dma
* KMALLOC_DMA
;
16 is_rec
= !!(flags
& __GFP_RECLAIM
);
18 return type_dma
+ (is_rec
* !is_dma
) * KMALLOC_RECLAIM
;
21 /* { dg-final { scan-tree-dump-times { \* } 1 "optimized" } } */