1 /* PR tree-optimization/99079 */
2 /* { dg-do compile { target { lp64 || ilp32 } } } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
6 foo1 (unsigned int a
, unsigned int b
)
14 return 371 % (1U << b
);
20 return 371LL % (1U << b
);
24 foo4 (unsigned long long a
, int b
)
30 foo5 (unsigned a
, int b
)
32 return a
% (unsigned) (1ULL << b
);
38 return 371 % (int) (1ULL << b
);
44 return 371LL % (1 << b
);
47 /* { dg-final { scan-tree-dump-not " % " "optimized" } } */