OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [update-threading.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 "-O2 -fdump-tree-optimized" } */
3
 
4
typedef struct { unsigned short a; } A;
5
 
6
extern void abort (void);
7
extern void exit (int);
8
 
9
void foo (unsigned int x)
10
{
11
  if (x != 0x800 && x != 0x810)
12
    abort ();
13
}
14
 
15
int
16
main (int argc, char **argv)
17
{
18
  int i;
19
  for (i = 0; i < 2; ++i)
20
    foo (((A) { ((!(i >> 4) ? 8 : 64 + (i >> 4)) << 8) + (i << 4) } ).a);
21
  exit (0);
22
}
23
/* { dg-final { scan-tree-dump-times "Invalid sum" 0 "optimized" } } */
24
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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