libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / reassoc-49.c
blobc1136a447a2cf56df832032fc73c16d3872bcfab
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized -ftree-vectorize" } */
4 #define MODIFY
5 #define STORE
6 #include "reassoc-46.h"
8 /* Check that if the loop accumulator is both modified using a chain of
9 operations other than addition and stored into a global variable, its new
10 value is still added last. */
11 /* { dg-final { scan-tree-dump-times {(?:vect_)?sum_[\d._]+ = (?:(?:vect_)?_[\d._]+ \+ (?:vect_)?sum_[\d._]+|(?:vect_)?sum_[\d._]+ \+ (?:vect_)?_[\d._]+)} 1 "optimized" } } */