gcc/testsuite/gcc.dg/pr53979-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-forwprop-details" } */ |
| 3 | |
| 4 | unsigned f(unsigned a, unsigned b) |
| 5 | { |
| 6 | unsigned t1 = a ^ b; |
| 7 | unsigned t2 = t1 | a; |
| 8 | return t2; |
| 9 | } |
| 10 | |
| 11 | /* { dg-final { scan-tree-dump "gimple_simplified to t2_\[0-9\] = a_\[0-9\]*\\(D\\) | b_\[0-9\]*\\(D\\)" "forwprop1" } } */ |