2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / reassoc-45.c
blob48f6b74e39f1464c508b717f4115797b2c2fabf9
1 /* PR/71352 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fdump-tree-reassoc1" } */
5 unsigned a, b, c, d, e;
7 void
8 fn1 ()
10 unsigned f;
11 e = f = d * -b + a * -c;
14 /* Check that we factor -1 and create -(d * b + a * c). */
15 /* { dg-final { scan-tree-dump-times " = -" 1 "reassoc1" } } */