Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-23.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 "-O -fdump-tree-ccp1" } */ | |
3 | |
4 /* Make sure we propagate through POINTER_PLUS_EXPRs. */ | |
5 | |
6 struct A { | |
7 int i[2]; | |
8 } a; | |
9 | |
10 int foo (void) | |
11 { | |
12 struct A *p = &a; | |
13 int *q = (int *)p; | |
14 int *x = q + 1; | |
15 return *x; | |
16 } | |
17 | |
18 /* { dg-final { scan-tree-dump "MEM\\\[\\\(int \\\*\\\)&a \\\+ 2B\\\]" "ccp1" { target { int16 } } } } */ | |
19 /* { dg-final { scan-tree-dump "MEM\\\[\\\(int \\\*\\\)&a \\\+ 4B\\\]" "ccp1" { target { int32 } } } } */ |