Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/reassoc-7.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-reassoc1" } */ unsigned int foo(unsigned int a, unsigned int b, unsigned int c, unsigned int d, unsigned int e, unsigned int f, unsigned int g, unsigned int h) { /* Should be transformed into a + c + d + e + g + 15 */ unsigned int i = (a + 9) + (c + d); unsigned int j = (e + 4) + (2 + g); e = i + j; return e; } /* { dg-final { scan-tree-dump-times "\\\+ 15" 1 "reassoc1"} } */