Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/reassoc-7.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fdump-tree-reassoc1" } */ | |
3 | |
4 unsigned int | |
5 foo(unsigned int a, unsigned int b, unsigned int c, unsigned int d, | |
6 unsigned int e, unsigned int f, unsigned int g, unsigned int h) | |
7 { | |
8 /* Should be transformed into a + c + d + e + g + 15 */ | |
9 unsigned int i = (a + 9) + (c + d); | |
10 unsigned int j = (e + 4) + (2 + g); | |
11 e = i + j; | |
12 return e; | |
13 } | |
14 | |
15 /* { dg-final { scan-tree-dump-times "\\\+ 15" 1 "reassoc1"} } */ |