1 /* PR/71352 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O -fdump-tree-reassoc1" } */ 4 5 unsigned a, b, c, d, e; 6 7 void fn1()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" } } */ 16