OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr30137-2.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-w -fdump-tree-gimple" } */
3
 
4
/* Things that should be folded.  */
5
 
6
struct { long base; int tail; void * volatile ptr; } *s;
7
int foo1a (void) { return (s == &s->base); }
8
int foo1b (void) { return (&s->base == s); }
9
int foo2 (void) { return ((void *)s == (void *) &s->base); }
10
int foo4 (void) { return s->base == s->base; }
11
int foo5 (void) { return &s->ptr == &s->ptr; }
12
int foo6 (void) { return &s->ptr != &s->ptr; }
13
int foo7 (void) { return &s->base != &s->ptr; }
14
 
15
struct { union { int i; short s } u; } x;
16
int foo8 (void) { return &x.u.i == &x.u.s; }
17
 
18
/* { dg-final { scan-tree-dump-times "= 0" 1 "gimple" } } */
19
/* { dg-final { scan-tree-dump-times "= 1" 7 "gimple" } } */
20
/* { dg-final { cleanup-tree-dump "gimple" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.