1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-tree-optimized -ftree-vectorize" } */
       3  
       4  #define MODIFY
       5  #include "reassoc-46.h"
       6  
       7  /* Check that if the loop accumulator is modified using a chain of operations
       8     other than addition, its new value is still added last.  */
       9  /* { dg-final { scan-tree-dump-times {(?:vect_)?sum_[\d._]+ = (?:(?:vect_)?_[\d._]+ \+ (?:vect_)?sum_[\d._]+|(?:vect_)?sum_[\d._]+ \+ (?:vect_)?_[\d._]+)} 1 "optimized" } } */