Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/reassoc-12.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fdump-tree-reassoc1-details" } */ | |
3 int f(int a, int b) | |
4 { | |
5 /* MAX_EXPR <a, a> should cause it to be equivalent to a. */ | |
6 int c = a>=b?a:b; | |
7 int d = c>=a?c:a; | |
8 return d; | |
9 } | |
10 /* { dg-final { scan-tree-dump-times "Equivalence:" 1 "reassoc1"} } */ |