gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-plusmult.c
blobd584b95887466e50202bf49dd5cf74e7a5c0a647
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-original" } */
4 int test1 (int a)
6 return 2*a + 2*a;
9 int test2 (int a)
11 return (a + a)*2;
14 /* { dg-final { scan-tree-dump-times "<a> \\\* 4" 2 "original" } } */
15 /* { dg-final { cleanup-tree-dump "original" } } */