Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr87954.c
blob620657cb1f5d3dc507eb1972074dd5b04b9924e2
1 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 #define __GFP_DMA 1u
4 #define __GFP_RECLAIM 0x10u
6 #define KMALLOC_DMA 2
7 #define KMALLOC_RECLAIM 1
9 unsigned int
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" } } */