]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/reassoc-45.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / reassoc-45.c
CommitLineData
0d99f8a0
RB
1/* PR/71352 */
2/* { dg-do compile } */
3/* { dg-options "-O -fdump-tree-reassoc1" } */
4
5unsigned a, b, c, d, e;
6
7void
8fn1 ()
9{
10 unsigned f;
11 e = f = d * -b + a * -c;
12}
13
14/* Check that we factor -1 and create -(d * b + a * c). */
15/* { dg-final { scan-tree-dump-times " = -" 1 "reassoc1" } } */