gcc/testsuite/gcc.dg/tree-ssa/reassoc-50.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-optimized -ftree-vectorize" } */ |
| 3 | |
| 4 | #define MODIFY |
| 5 | #define USE |
| 6 | #include "reassoc-46.h" |
| 7 | |
| 8 | /* Check that if the loop accumulator has multiple uses inside the loop, it's |
| 9 | not forced to the end of the reassociation chain. */ |
| 10 | /* { dg-final { scan-tree-dump-times {(?:vect_)?sum_[\d._]+ = (?:(?:vect_)?_[\d._]+ \+ (?:vect_)?sum_[\d._]+|(?:vect_)?sum_[\d._]+ \+ (?:vect_)?_[\d._]+)} 2 "optimized" } } */ |