PR tree-optimization/81627
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / phi-opt-12.c
blobf00d0fcc474098a1077dd9d09f97e0d822009e4f
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-phiopt1" } */
4 int f(int a, int b, int c) {
5 if (c > 5) return c;
6 if (a == 0) return b;
7 return a + b;
10 unsigned rot(unsigned x, int n) {
11 const int bits = __CHAR_BIT__ * __SIZEOF_INT__;
12 return (n == 0) ? x : ((x << n) | (x >> (bits - n)));
15 unsigned m(unsigned a, unsigned b) {
16 if (a == 0)
17 return 0;
18 else
19 return a & b;
22 /* { dg-final { scan-tree-dump-times "goto" 2 "phiopt1" } } */